-
Notifications
You must be signed in to change notification settings - Fork 436
Closed
Closed
Copy link
Labels
Description
Required Reading
- Confirmed
Plugin Version
4.18.5
Mobile operating-system(s)
- iOS
- Android
Device Manufacturer(s) and Model(s)
OPPO Reno13 F 5G
Device operating-systems(s)
Android 15
React Native / Expo version
0.72.17
What do you require assistance about?
When BackgroundGeolocation.start() is called, the motion permission prompt appears first. A few seconds later, the background location permission prompt is shown, causing them to overlap. Regardless of whether the user selects 'Allow' or 'Don’t Allow' for motion permission, the app redirects to the Settings screen. After returning from Settings, the background location permission dialog is still displayed, creating a confusing and potentially buggy experience.
[Optional] Plugin Code and/or Config
BackgroundGeolocation.ready({
// Geolocation
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_LOW,
distanceFilter: Platform.OS === 'ios' ? 10 : 0,
disableElasticity: true,
stopTimeout: 5,
stationaryRadius: 20,
locationUpdateInterval: 300000,
fastestLocationUpdateInterval: 300000,
stopOnStationary: false,
// Permissions
locationAuthorizationRequest: 'Always',
disableLocationAuthorizationAlert: true,
stopOnTerminate: false,
startOnBoot: true,
enableHeadless: true,
})
[Optional] Relevant log output
nzcodarnoc and YapCaiFu