Get Geolocation when app is killed ionic ionic-v3


Want to get geolocation of user even when app is closed. Is it possible in ionic ???


You can do it using the native Background Geolocation plugin. It allows you to see watch the position even when app is closed, and then call your http post for upload your data to your database.


its not working when app is not in background its closed


For that, is necessary to add the param
{stopOnTerminate: false}
It means the Geolocation will be continuing working even when app is closed.