Get Geolocation when app is killed


Some mobile apps can manage to get users’ location even when the app is killed.
For example apps using geolocation to show friends’ position at anytime (such as Zenly).

The background-geolocation plugin can only get the location when the app is in foreground or background, but not when the app is closed / killed.

Is there any way to achieve this with Ionic / Cordova?


Add this option stopOnTerminate = false to your background geolocation config.

Enable this in order to force a stop() when the application terminated (e.g. on iOS, double-tap home button, swipe away the app). (default true)


It does not seem to work for me.
Have you tried and tested it?
Can you make it work with only this stopOnTerminate option?