flutterlocation icon indicating copy to clipboard operation
flutterlocation copied to clipboard

checking for location services always returns true !

Open anirudhsharma392 opened this issue 6 years ago • 6 comments

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

anirudhsharma392 avatar Aug 20 '20 23:08 anirudhsharma392

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

danielseow-simplify avatar Aug 21 '20 18:08 danielseow-simplify

Then how to make sure that GPS is not in power saving mode and we can get location.

anirudhsharma392 avatar Sep 04 '20 17:09 anirudhsharma392

I am having same issue. await location.serviceEnabled(); always returns true for some devices.

akashnigam010 avatar Sep 08 '20 10:09 akashnigam010

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.

stale[bot] avatar Oct 10 '20 07:10 stale[bot]

did any one found any solution on this? i'm facing same issue. thanks

arunvast avatar Nov 06 '20 07:11 arunvast

Still i am facing the same issue does anyone have working solution on how to check GPS is on or not ?

Brinfotech1407 avatar Jul 03 '23 09:07 Brinfotech1407