transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
660 stars 276 forks source link

Ionic 3 : How can we track user coordinates even when start in background option and autostart options are disabled ? #675

Closed srikanth15794 closed 6 years ago

srikanth15794 commented 6 years ago

I want my app to run always in the background even when the user tries to disable those features in the settings. Is there any way to disable the app settings feature in the mobile ? Ultimately i want my app to run always and if user disables the settings they have to be changed automatically to on condition. Auto start and Background mode aren't working please who have any idea tell me asap. (Completely ionic3)

christocracy commented 6 years ago

If the user wants to hide from you (eg: by disabling "location" in settings) there's nothing you can do about it. The user owns their device — not you.

However, you can listen to the plugin's providerchange event so you can know when they disable location-services.

The only thing you can do is ask the user to "Please turn on location-services so I can track you".

srikanth15794 commented 6 years ago

and if the user terminates the app without enabling the location option then can we restart the app and continue asking for location permission ?

christocracy commented 6 years ago

You can't.