checking for location services always returns true !
Describe the bug serviceEnabled() function always return true even i switch off the GPS.
Expected behavior It must return false if GPS is not activated.
Tested on:
- Android, API Level 28, C103_C103_Coolpad
Having a similar issue, but you have to make sure if the GPS is on battery saving mode or it is really turned off. Because in my case, usually, the user will turn off the GPS from the quick settings menu which will only result in switching the GPS to battery saving mode instead of turning it off. Therefore, it will still return the location service as true, and it is causing a lot of trouble to me since my code will not be able to get the location if user is on battery saving mode does not want to enable when the popup alert appears asking for the user to enable the GPS on high accuracy mode
Then how to make sure that GPS is not in power saving mode and we can get location.
I am having same issue.
await location.serviceEnabled(); always returns true for some devices.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
did any one found any solution on this? i'm facing same issue. thanks
Still i am facing the same issue does anyone have working solution on how to check GPS is on or not ?