Closed Shubhangigovil closed 4 months ago
But there is no option for configuring the Always Allow
You didn’t not correctly follow the iOS Setup. You made a mistake adding the .plist strings NSLocationAlwaysAndWhenInUseUsageDescription.
@Shubhangigovil for what it's worth, I was having the same issue even with the proper .plist strings added. I had to add locationAuthorizationRequest
and set it to WhenInUse
inside of the BackgroundGeolocation.ready({...})
config.
See this thread: https://github.com/transistorsoft/capacitor-background-geolocation/issues/14#issuecomment-902769420
Example:
BackgroundGeolocation.ready({
...
locationAuthorizationRequest: 'WhenInUse',
...
})
Hope it helps ...
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
react-native -v
): 0.70.1Bearer ${token}
, }, extras: { Email: 'shubhangi.govil@un.org', }, })Expected Behavior
I want the app to track the location when it is in background, foreground or quit mode. And it should ask for location permission when the permission "Always" is not granted. But there is no option for configuring the Always Allow settings in iOS and neither does the OS send it by itself as described in your docs: https://transistorsoft.github.io/react-native-background-geolocation/interfaces/config.html#locationauthorizationalert
Actual Behavior
After every 1 min it gives me this popup: