flutter-geolocator
flutter-geolocator copied to clipboard
isLocationServiceEnabled = true but error "The location service on the device is disabled"
🐛 Bug Report
I check my positioning is turned on and i have it on too. isLocationServiceEnabled return true.
However, when using Geolocator.getCurrentPosition
, it throws an error "The location service on the device is disabled".
I use xiaomi note 8pro and geolocator: 6.1.13.
same
Can you provide your:
flutter doctor -v
I reproduced the issue on my Oppo Reno 2Z using the example application:
- Granted location permission
- Turned location on
- Method shows expected behaviour
#631
isLocationServiceEnabled still returns true on iOS when i set gps access to "never"
update: im using https://pub.dev/packages/location_permissions as a workaround
@sooxt98 Please show me the workaround example.
bool serviceEnabled = await Geolocator.isLocationServiceEnabled(); always returns true. even, when it's in denaied forever mode.
same here, any workarounds?
Same, but in my case this error appears only on tablet emulators. If use android emulator, real device or genymotion - all fine.
It seems to us that this issue is no longer valid, or is solved in the meantime. Therefore, we will close this issue. Feel free to reopen the issue if it is still relevant or reappears. If so, in order to be able to reproduce this issue, please add the output of flutter doctor -v
below.