How can request user active GPS when using the App?

I have a problem when users submit without turning on the GPS, so the app can not locate their location exactly? How can we prevent user turning off GPS when using the app? And how can we send a request if they turn of the GPS?

Thank a lot.

Hien Nguyen

0 1 81
1 REPLY 1

Aurelien
Google Developer Expert
Google Developer Expert

Hi @hien_nguyen 

As far as I know, you can't track device settings.

Nonetheless, if disabled, the GPS location will show coordinates 0,0.

You may want to get this when the user submits a new entry in the app, and use this result to inform the user it should be enabled, like a Data validation option.

Please note this is a suggestion, I did not test it.

Top Labels in this Space