question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

stopOnTerminate does not work in iOS

See original GitHub issue

Background location service doesn’t work in iOS on app terminate. But in android it works as expected

Here is the configuration

const config: BackgroundGeolocationConfig = { desiredAccuracy: 10, stationaryRadius: 10, distanceFilter: 10, debug: true, // enable this hear sounds for background-geolocation life-cycle. stopOnTerminate: false, // enable this to clear background location settings when the app terminates notificationTitle: “Test App”, notificationText: “Route Tracking…”, pauseLocationUpdates: false, activitiesInterval: 2000, stopOnStillActivity: false, saveBatteryOnBackground: false, //startOnBoot: true, locationProvider: this.backgroundGeolocation.LocationProvider.ANDROID_ACTIVITY_PROVIDER, interval: 2000, fastestInterval: 1000, syncUrl:
syncThreshold: 100 // old value 100 };

Your Environment

  • Plugin version:2.3.6

  • Platform: iOS

  • OS version:12

  • Device manufacturer and model:iPhone 6

  • Cordova platform version (cordova platform ls):7.0

Expected Behavior

Plugin should work as expected in iOS as well

Actual Behavior

Background location service does not work on app terminate

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
gmixcommented, Apr 28, 2019

Hi! Did you find solution to fix problem?

0reactions
DhruvSakhiyacommented, Aug 28, 2020

having a same issue it is not working in ios if any one have any suggestions how it works i am using 3.1.0 version plugin and @ionic-native/background-geolocation": "^4.20.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

StopOnTerminate does not resume as expected #870 - GitHub
I have no issues on my iPhone 11 pro, 6s. Doesn't matter if I kill the app. It always resumes tracking. Test the...
Read more >
BackgroundGeolocation | React Native Background Geolocation
This DeviceSettings API is an attempt to provide resources to direct the user to the appropriate vendor-specific settings screen to resolve issues with ......
Read more >
BackgroundFetch - Expo Documentation
iOS only: BackgroundFetch only works when the app is backgrounded, not if the app was terminated or upon device reboot. Here is the...
Read more >
background_fetch 0.7.2 | Flutter Package - Pub.dev
If the user doesn't open your iOS app for long periods of time, iOS will stop ... Requires {stopOnTerminate: false, enableHeadless: true} BackgroundFetch....
Read more >
Does flutter_background_geolocation fetch the location even ...
Facing few issues in working with background_locator. Can you provide me with a working example for tracking background location which you're ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found