flutterlocation
flutterlocation copied to clipboard
PermissionStatus.grantLimited not returns on Android 12+ (31 SDK)
On Android 12 (API level 31) or higher user can grant only approximate location

When only approximate location access granted system returns only ACCESS_COARSE_LOCATION without ACCESS_FINE_LOCATION and plugin return PermissionStatus.denied instead of PermissionStatus.grantedLimited.
I found simple hack in this case When user selecting Approximate location and plugin returns PermissionStatus.denied by first time — I check this is Android 12+ and then i request permissions one more time. After that system requesting allow app to access device precise location.

If user accepted it — plugin returns PermissionStatus.granted and app starting to get location data.
Please fix it in near updates.
https://pub.dev/packages/geolocator handles this properly
Any news?