Background Geolocation does not work under iOS
See original GitHub issueI am using Ionic framework to develop my app, I’ve followed the documentation, everything works fine on Android; however on iOS it shows the blue bar that says that the app is tracking the current location on the background (only for the first 40 seconds), then that blue bar disappears and the app stop tracking the current location.
Your Environment
- Plugin version: cordova-plugin-mauron85-background-geolocation 2.2.5 “CDVBackgroundGeolocation”
- Platform: iOS
- OS version: iOS 10
- Device manufacturer / model: iPhone 6
- Cordova version (
cordova -v
): 7.0.1 - Cordova platform version (
cordova platform ls
): ios 4.4.0 - Plugin config
Expected Behavior
It should track the user current location in iOS even if the app goes to the background.
Actual Behavior
When going to the background, it shows the blue bar that says that the app is taking the current location on the background (only for the first 40 seconds), then that blue bar disappears and stop tracking the current location.
On the other hand, I have the same code working perfectly on Android devices, so I guess that there is an issue with the iOS.
Steps to Reproduce
Just follow the documentation on the following link : https://ionicframework.com/docs/native/background-geolocation/
Then run the app under iOS
Context
Track drivers location and update the database of the current driver location each 10 seconds.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:19 (2 by maintainers)
Top GitHub Comments
Same problem. Other people have been having running into the same issue as well.
Can anyone please validate this does work as expected with v3?