Open
Description
Required Reading
- Confirmed
Plugin Version
"react-native-background-fetch": "^4.2.5", "react-native-background-geolocation": "^4.17.4",
Mobile operating-system(s)
- iOS
- Android
What do you require assistance about?
The user selection as "allow this time" and why trying to use onProviderState() or getCurrentPosition(), the app prompts to "change to allow all the time" and immediately redirects to location settings, without user making any selection on the prompt. This makes the user to make the selection in settings screen. but when returning to app, the prompt stays as is.
I would like either the library prompt or navigating to settings to happen and not both at the same time which is confusing the user.


[Optional] Plugin Code and/or Config
// Location permission
disableLocationAuthorizationAlert: true,
locationAuthorizationRequest: "Always",
enableHeadless: false,
backgroundPermissionRationale: {
title: "Confirm your location permissions",
message:
"Update your location permissions to “Allow all the time“?\n\nThis enables to collect your location ONLY during a session. .\n\n1. Tap on “Change to Allow all the time”\n2. Select “Allow all the time”\n3. Return to the app",
positiveAction: "Change to {backgroundPermissionOptionLabel}",
negativeAction: "Cancel",
},
// Location settings permissions alert, when Location is set to `Never` manually
locationAuthorizationAlert: {
titleWhenNotEnabled: "Location services not enabled",
titleWhenOff: "Location services are off",
instructions:
"To use optimally, you must enable 'Always' in Location Services settings",
cancelButton: "Cancel",
settingsButton: "Settings",
},
[Optional] Relevant log output
Metadata
Assignees
Labels
No labels