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?

HI ALL
I have use following configuration for get location on app background even app close

const config: BackgroundGeolocationConfig = {
desiredAccuracy: 10,
stationaryRadius: 20,
distanceFilter: 30,
debug: false,
stopOnTerminate: false
};
App is working prefect on App running or background BUT WHEN I CLOSED THE APP THEN LOCATION IS NOT WORKING , I HAVE TRYING WITH WIFI EVEN MOBILE INTERNET .

IS THIS POSSIBLE CAN I GET LOCATION ON APP CLOSED?. PLEASE HELP ME

Thanks in advance