Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

209
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!