flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

[Android 12] Approximate location

Open renefloor opened this issue 4 years ago • 13 comments

🚀 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. image

Platforms affected (mark all that apply)

  • [ ] :iphone: iOS
  • [X] :robot: Android

renefloor avatar May 19 '21 08:05 renefloor

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.

b055man avatar Sep 06 '21 10:09 b055man

@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.

renefloor avatar Sep 06 '21 10:09 renefloor

@mvanbeusekom @renefloor Hey guys, just wanted to check if there are any updates/plans for this functionality.

b055man avatar Oct 18 '21 07:10 b055man

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?

RomanKapshuk avatar Oct 28 '21 15:10 RomanKapshuk

@mvanbeusekom any updates regarding this item?

b055man avatar Mar 02 '22 22:03 b055man

Any news. I got this when submit app on gg play Screen Shot 2022-03-28 at 08 51 35

hienhodeveloper avatar Mar 28 '22 03:03 hienhodeveloper

This issue is the Android counterpart of #558.

JeroenWeener avatar Aug 30 '23 14:08 JeroenWeener

Hi, any updates?

Any updates?

chilimsv avatar Oct 18 '23 10:10 chilimsv

Hi, any updates?

hajajmaor avatar Oct 22 '23 09:10 hajajmaor