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

215
Vistas
How do we get Background Location Permissions in Expo SDK 42+?

I have a React-Native/Expo managed workflow app where I need to track a user's position when the app is running in the background.

I have successfully requested and received the user's foreground location, but the next page where the user has their background location permission requested I receive the following warning:

[Unhandled promise rejection: Error: One of the NSLocation*UsageDescription keys must be present in Info.plist to be able to use geolocation]

Here is a snippet of the code requesting 'background location'

async function getBackgroundLocationAsync() {
          let { status } = await Location.requestBackgroundPermissionsAsync()
            if(status !=='granted'){
              setErrorMsg('Permission to access background location was denied')
              return;
            }
          let backgroundLocation = await Location.getBackgroundPositionAsync({});
          setBackgroundLocation(backgroundLocation);
        }


   getBackgroundLocationAsync()
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The error tells exactly what you need to do : add NSLocation property in your package.json in ios.infoPlist. You'd also need to add UIBackgroundMode.

You can see the full documentation here : https://docs.expo.dev/versions/latest/sdk/location/#configuration

about 4 years ago · Juan Pablo Isaza Denunciar
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