flutter-geolocator
flutter-geolocator copied to clipboard
Get service status by location mode
🚀 Feature Requests
Get the Geolocator.isLocationServiceEnabled() in the location modes, (High Precision, Battery Saver, Device Only).
Contextualize the feature
Android devices have location modes (High Precision, Battery Saver, Device Only), I know that the package has precision modes but not location modes. Is it possible that in the future the location can be obtained by the different location mode?
Describe the feature
Greetings, I am currently using this excellent package, but in my application I launch a progress dialog in the event that the location service is not active. The Geolocator.isLocationServiceEnabled() throws me a true response if the service is active and in the same way if it is not active it throws the false one, but this only in Device Mode, if I change the location mode and disable the location service from the android box keeps throwing me a real one. I did not want to mark it as a problem because I think it is not a problem as such, thank you for offering this excellent package.
Platforms affected (mark all that apply)
- [ ] :iphone: iOS
- [x] :robot: Android
At the moment this is not possible, however we are planning a larger refactor which should allow for this feature to be added.
Some additional information, the options "High Precision", "Battery Saver" and "Device Mode" correspond to the two providers that are available and have the following meaning:
- "High Precision" means detailed location information and both the "Network Provider" and "GPS Provider" will be utilized.
- "Battery Saver" means less detailed location information using only the "Network Provider".
- "Device only" only makes use of the onboard sensors which falls back to using only the "GPS Provider".
I will keep this issue open for now as a reference to add this feature when we do the refactor.