Skip to content
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

Granting approximate location is treated as location blocked completely #2949

Open
steffenkleinle opened this issue Oct 2, 2024 · 0 comments
Labels
Android only concerns android devices Bug Something isn't working ready

Comments

@steffenkleinle
Copy link
Member

steffenkleinle commented Oct 2, 2024

Describe the Bug

Since Android 12 it is possible to decide whether to grant an app precise location or just approximate location.
As default, android always asks whether to grant precise or approximate location when requesting fine location.
Since we only ask for precise location (i.e. ACCESS_FINE_LOCATION, we get denied if the user only grants approximate location.

Instead of this, we should be okay with ACCESS_COARSE_LOCATION as well.

Steps to Reproduce

  1. Use a device with android 12+
  2. Remove location permission
  3. Go the city selection
  4. Click on the refresh button next to Location access required
  5. Select approximate
  6. See the snackbar showing that location access is blocked

Expected Behavior

The app should take the approximate location and still work with that.

Actual Behavior

Selecting approximate location leads to app showing the access is blocked completely.

Additional Information

Code snippet that could be useful: zoontek/react-native-permissions#668
https://developer.android.com/develop/sensors-and-location/location/permissions#accuracy

@steffenkleinle steffenkleinle added Bug Something isn't working ready Android only concerns android devices labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android only concerns android devices Bug Something isn't working ready
Projects
Status: No status
Development

No branches or pull requests

1 participant