Toggling location permission from app settings to allowed returns denied in app

Please provide the following:

  1. SDK Version: 3.20.1
  2. Platforms(Android/iOS/web/all): all
  3. expo-permissions

When I prompt the user for their location, and they deny, they are required to go to app-settings if they want to enable location again, since askAsync won’t prompt the permission modal when status is denied. However, when the user toggles expo go location settings from never to always that status is still returned as denied in app. Restarting the app does not refresh the new location permission status and it will still return denied.

To reproduce:

  1. Run Permissions.askAsync(‘location’)
  2. Tap deny on the modal
  3. Go into app permission settings and enable location for expo go
  4. Return to app and check the status returned by Permissions.getAsync(‘location’)
  5. Permission is expected to return ‘granted’ but returns ‘denied’

I discovered this comment is the reason, just for anyone who finds this. Permissions.getAsync(Permissions.CAMERA_ROLL) "status=denied" when granted - #2 by esamelson

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.