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.
Hi @Motoralfa
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
Alredy did that but no luck