-
-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeolocationStatus.disabled isn't returned if Location is turned off #108
Comments
This issue is being addressed in the following PR: Baseflow/flutter-permission-handler#32 |
@escamoteur we just release version 2.1.0 which implemented this feature. Let us know what you think. |
in 5.1.3 status is returning granted even when the location services are off. this is my code. Maybe im doing something wrong? GeolocationStatus geolocationStatus = await Geolocator().checkGeolocationPermissionStatus();
I am using a pixel 1 on 9.0 |
Yes that is perfectly legal. The availability of the location service and the fact that permissions are granted are two separate entities. You can still request permissions to access location information if the user has turned off the location services. You can use the |
Thank you. That worked as expected. |
Maybe this should be added to the main documentation. I find
is very confusing related to this. |
Hi,
while testing I found that if the location service is disabled a call to geCurrentLocation just won't return until the service is switched on.
Calling checkGeolocationPermissionStatus doesn't help either because it will just return granted if the permissions are right and seems not to check id the service is available.
Cheers
Thomas
The text was updated successfully, but these errors were encountered: