Are we able to get Background Location and Request Permissions in Managed Workflow?

Please provide the following:

  1. SDK Version: 43
  2. Platforms(Android/iOS/web/all): All
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

I have a Managed Workflow Expo/RN app where I need my user’s location while the app is running in the background. I have successfully requested ‘Foreground Location’ but in the next page, when I request ‘Background Location’ I get 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(‘Background Permission Denied’)
return;

let backgroundLocation = await Location.getBackgroundPositionAsync({});
setBackgroundLocation(backgroundLocation);
}

getBackgroundLocation()

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.