SDK 38.0
Platforms: ios
Our application was rejected from the Apple App Store as we did not override the default permission message to access the photo library.
Our permission code looks like this:
import * as ImagePicker from "expo-image-picker";
...
const requestPermission = async () => {
const {
granted,
} = await ImagePicker.requestCameraRollPermissionsAsync();
if (!granted) {
alert(
"Sorry, you will need to enabled permissions to access your library to upload an image."
);
setCameraPermission(false);
}
};
We’ve added the following in app.json:
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.acme.ourapp",
"infoPlist": {
"NSPhotoLibraryUsageDescription": "The application requires access to your photos to allow you to upload a profile picture."
},
When testing using the iOS simulator, the default expo message displays we do not see the infoPlist message text.
Is this a limitation of the iOS simulator or did we code something incorrectly?
Thanks.