Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

143
Vistas
How do I make my Expo EAS app only track a user's background location in certain screens?

I have a RN/EAS app that tracks a user's background location. I only want their background location to be logged in certain screens, but whenever I have the app engaged in any screen, I get the blue, background location tracking notice.

I have my task manager existing in the App.js folder, but I am unsure how I may properly configure it to only run in certain screens. Below is my TaskManager code:

const LOCATION_TASK_NAME = 'background-location-task'

TaskManager.defineTask('firstTask', ({data, error}) => {
   if(error){
      alert('Something went wrong with background locations')
   }

  if(data){
    alert('Something went right with background locations')
    const{locations} = data
    console.log(locations, 'locations')
  }

  })
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda