cordova-plugin-background-geolocation
cordova-plugin-background-geolocation copied to clipboard
Authorization not asked on iOs. Working properly on Android
Your Environment
- Plugin version: @ionic-native/background-geolocation": "^5.28.0", "@mauron85/cordova-plugin-background-geolocation": "^3.1.0"
- Platform: iOS
- OS version: 13.6.1
- Device manufacturer and model: iPad Mini 2020
- Running in Simulator: no
- Capacitor version (
cordova -v
): could not find it... sorry. It's the latest available at this moment - Cordova platform version (
cordova platform ls
): not available - Plugin configuration options: const config : BackgroundGeolocationConfig = { desiredAccuracy: 10, stationaryRadius: 20, distanceFilter: 30, debug: false, // enable this hear sounds for background-geolocation life-cycle. stopOnTerminate: false, // enable this to clear background location settings when the app terminates };
- Link to your project: not available (local)
Context
I've added the bg geolocation as described here: https://ionicframework.com/docs/native/background-geolocation Also, I've edited the plist.info on xcode adding the required permissions.
Expected Behavior
As soon as I call BackgroundGeolocation.start() in my app.component.ts I expect to see the geolocation auth window
Actual Behavior
This happens in Android, it does not in iOs
Possible Fix
Steps to Reproduce
- Compile the example linked in the context
- Run it on iPad
- The auth window is not shown
Context
I'm trying to auth the app to use the background geolocation service
Debug logs
I'm using angular. PrintIosLogs do not work.
Facing same issue, please help!
I have the inverse issue -- mine works perfectly on iOS and not on Android. Maybe we can help each other out? 😄