I need to get the position of mobile when application is closed == killed, like whatsapp or facebook or many apps ,so i can receive the location of mobile and send it to my server every 1 hour. i have tried background mode and powerManagement and backgroundGeolocation plugins but it didnt work when app closed(killed == not in background and not running),is there any way to create service to stay alive after application closed or any way to add this option in java(android) inside ionic platform.
sorry for bad english
I want to get user’s location at a particular time of day even when the application is closed (its not even in background)… Is there any way I can achieve this?
If the app is closed, answer is as @Sujan12 said: not possible. You could however trigger a local notification, which on interaction let’s the user open up the app. Then you can do whatever you want. But it isn’t possible when the app is fully closed for obvious reasons. Else you could ask for a device location whenever you want, which could potentially be a huge privacy risk.