expo-location return status = PermissionStatus.DENIED when permission is set to "Ask every time"
Fabien Bounoir
## Issue
When the location permission is set to
"Ask every time"
, expo-location
returns a **denied
** status.However, the permission is not actually denied. Android is configured to prompt the user each time the app requests location access, so reporting it as
denied
is misleading.Expected behavior:
When the permission is set to
"Ask every time"
, expo-location
should return a status that reflects this state (or otherwise indicate that the permission can still be requested), instead of denied
.### Steps to reproduce
- Install an app using expo-location.
- Grant the location permission once.
- Open the Android app settings and change the location permission to "Ask every time".
- Reopen the app.
- Call Location.getForegroundPermissionsAsync().
Current behavior:
The returned permission status is denied
.Expected behavior:
The status should not be denied
, since the permission is configured to prompt the user on each request.