Skip to content

[Android 12] Approximate location #559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 2 tasks
renefloor opened this issue May 19, 2021 · 13 comments
Open
1 of 2 tasks

[Android 12] Approximate location #559

renefloor opened this issue May 19, 2021 · 13 comments
Labels
P1 High-priority issues at the top of the work list. platform: android Issue is related to the Android platform. platform: android 12 type: enhancement New feature or request

Comments

@renefloor
Copy link
Contributor

🚀 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)

  • 📱 iOS
  • 🤖 Android
@b055man
Copy link

b055man commented Sep 6, 2021

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.

@renefloor
Copy link
Contributor Author

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

@b055man
Copy link

b055man commented Oct 18, 2021

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

@RomanKapshuk
Copy link

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?

@b055man
Copy link

b055man commented Mar 2, 2022

@mvanbeusekom any updates regarding this item?

@hienhodeveloper
Copy link

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

@JeroenWeener JeroenWeener added platform: android Issue is related to the Android platform. type: enhancement New feature or request P2 Important issues not at the top of the work list. platform: android 12 labels Aug 30, 2023
@JeroenWeener JeroenWeener added P1 High-priority issues at the top of the work list. and removed P2 Important issues not at the top of the work list. labels Aug 30, 2023
@JeroenWeener
Copy link
Contributor

JeroenWeener commented Aug 30, 2023

This issue is the Android counterpart of #558.

@wojciechzahradnikdeviniti

Hi, any updates?

@chilimsv
Copy link

Any updates?

@hajajmaor
Copy link

Hi, any updates?

@L1u6
Copy link

L1u6 commented May 29, 2024

Hi, any updates?

@thecodepapaya
Copy link

Hi folks, thank you so much for the amazing open source project. Is there any update on the handling of precise vs approximate location?

@Pierre-Monier
Copy link

I have work on the iOS counterpart I can work on the Android side as soon as we are ok with the design of this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High-priority issues at the top of the work list. platform: android Issue is related to the Android platform. platform: android 12 type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests