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

165
Vistas
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 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