flutterlocation icon indicating copy to clipboard operation
flutterlocation copied to clipboard

Package stucks when iOS Precise location checkbox is unchecked

Open elmar001 opened this issue 2 years ago • 1 comments

IOS location permission window has a Precise location checkbox on the same window. If that checkbox is unchecked no matter what type of permission granted nothing works. It cannot check permission or return location details. Tested with iOS 16.1.1 running iPhone 8 and iPhone XS. Should not it still return permission type at least?

elmar001 avatar Mar 02 '23 23:03 elmar001

Seems like Geolocator has that capability to handle it:

final accuracyStatus = await Geolocator.getLocationAccuracy(); switch(accuracyStatus) { case LocationAccuracyStatus.reduced: // Precise location switch is OFF. break; case LocationAccuracyStatus.precise: // Precise location switch is ON. break; case LocationAccuracyStatus.unknown: // The platform doesn't support this feature, for example an Android device. break; }

Source: https://stackoverflow.com/a/70167786/2976879

elmar001 avatar Mar 15 '23 06:03 elmar001