Get Geolocation when app is killed ionic ionic-v3


#1

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


#2

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.


#3

its not working when app is not in background its closed


#4

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