Is there a way to not request location permission after LOCATION_WHEN_IN_USE permission has been granted on the system settings?

I am doing a react native project on expo (46.0.0). When a user have a “never” permission on the phone, when pressing share location button, asks if the user wants to change location manually and if “yes” the app redirects to system settings.

However when the user turns back and I try to access location through method getCurrentPositionAsync (expo-location library) I still see the “LOCATION_FOREGROUND permission is required to do this operation” error, even though the LOCATION_WHEN_IN_USE permission has been granted on the system settings, because my app has not requested the permission through the expo-location API.

Is there a way to achieve this on an expo project, without having to ask twice? (testing on iphone)

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