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

171
Visualizações
How to listen for location for realtime in react native

I am working on a location tracking application, I am prompting an error message when users are off their location. Implemented functionality working but I face one problem when the user turns off location from the top menu of the mobile app it not working but when I close an app it worked ( it the bacause I am using react native app state to check app is foreground or in the background ). What I want to achieve when users are off their location I want to listen realtime when location off I want to prompt message direct.

Here is implemented functionality

const _handleAppStateChange = async (nextAppState) => {
    console.log("22 app", appState);
    if (
      appState.current.match(/inactive|background/) &&
      nextAppState === "active"
    ) {
      getCurrentUserLocation();
    }
    appState.current = nextAppState;
    setAppStateVisible(appState.current);
  };
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