flutter-permission-handler
flutter-permission-handler copied to clipboard
[Android 12] Approximate location
🚀 Feature Requests
Android 12 builds upon recent platform changes to the location permissions model, including background location and one-time permissions. When an app targets targets Android 12, users can request that the app retrieve only approximate location information, even when the app requests the ACCESS_FINE_LOCATION runtime permission. https://developer.android.com/about/versions/12/approximate-location
Contextualize the feature
The permission for location should be adapted, it should not only give (not) allowed, but also whether you have precise location or not.
This should also be changed for iOS (see #558). However, the Android part can only be made/merged when the Android 12 platform is stable, probably in August.

Platforms affected (mark all that apply)
- [ ] :iphone: iOS
- [X] :robot: Android
Hi @renefloor any update on this change? Android 12 is round the corner, seems fairly stable at this point..
I noticed one thing with the plugin (locally modified, to fetch individual permissions) when testing it with Android 12 OS . When you choose 'approximate location' upon the app start, right after that the plugin returns 'permanentlyDenied' for the LOCATION_FINE permission, which is incorrect (you are still able to request 'precise' location at this point). Subsequent queries return properly 'denied' for this permission, until it becomes 'permanentlyDenied' after 2 more attempts.
@mvanbeusekom is the maintainer of the library, but I can help as I have Android 12 installed as well. One of the issues is that of course you can already test your app, but you cannot use the Android 12 API's yet in releases. It is good to know that with the Android 11 API's it is really broken in Android 12. Maybe we can somehow fix that already without migrating to Android 12. However, I expect the Android 12 RC this Wednesday or next week actually and we can fully support Android 12 at that point.
@mvanbeusekom @renefloor Hey guys, just wanted to check if there are any updates/plans for this functionality.
Any news? I get permission status denied for approximate location every time. Is there some hotfix maybe without the necessity to change something in the source code of the library?
@mvanbeusekom any updates regarding this item?
Any news. I got this when submit app on gg play

This issue is the Android counterpart of #558.
Hi, any updates?
Any updates?
Hi, any updates?