Here is my code for the permission
const getPermission = async () => {
if (Platform.OS !== "web") {
const { status } =
await ImagePicker.requestMediaLibraryPermissionsAsync();
if (status !== "granted") {
Alert.alert(
"Sorry, we need camera roll permissions to make this work!",
);
}
}
};
Full code of the screen where it happens can be found on github.
My app is not published. I have only about 5 users. Only for one my app keeps asking for permissions all the time on my NewScreen
. We double-checked the settings. The Expo Go app has camera permissions. We removed permission and re-added via settings. We also re-installed Expo Go. Nothing changes.
How can I narrow that down?
I am unsure if it is:
- An Expo Go issue? Since it is my screen only, probably not?
- My app? I guess I could publish another sample app with
ImagePicker
and try that. - His device? Anything I can check there? He has installed a recent Android version. Can I clear any internal caches of Expo Go or anything?
Any help is appreciated! Thanks in advance :).