Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

139
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda