I am using a location callback for saving the location of the user but when the location is turned off there is not data of location received. Is there any way to tackle this problem i.e. to get data while the location is turned off or turning on the location programmatically from background service?
Asked
Active
Viewed 23 times
0
-
1`to get data while the location is turned off` perhaps the user doesn't want you to get their location if it's off ? – a_local_nobody Feb 18 '21 at 11:56
-
Now wouldn't that be a serious breach of user privacy? – linuxartisan Feb 18 '21 at 11:57
-
[LocationSettingsRequest dialog to enable GPS - onActivityResult() skipped](https://stackoverflow.com/q/31235564/3290339) – Onik Feb 18 '21 at 12:03
-
@linuxartisan I'm just asking that if a user gives permission "allow all the time" then is it possible to get the data when the location is off? – Divyanshu Shukla Feb 19 '21 at 10:36