Permissions explanations not being overwritten by ios.infoPlist in app.json
See original GitHub issueI’m trying to get my app published in the Apple App Store. Pursuant to their feedback, I’m trying to provide a custom description for asking for microphone access.
I’m following procedure from System permissions dialogs on iOS.
My app.json has the form:
{
"expo": {
"name": "My App Name",
"icon": "./favicon.png",
"version": "0.1.2",
"slug": "my-app-name",
"sdkVersion": "25.0.0",
"ios": {
"bundleIdentifier": "com.myapp.app",
"infoPlist": {
"NSMicrophoneUsageDescription": "This app uses the microphone to record audio messages that maybe sent privately to an individual or published publicly for any user to listen to."
}
},
"android": {
"package": "com.myapp.app"
}
}
}
However, when prompting the user for microphone permissions, the app still says “Allow Expo experiences to access your microphone”
Environment
Environment: OS: macOS High Sierra 10.13.3 Node: 8.9.4 Yarn: 1.3.2 npm: 5.6.0 Watchman: Not Found Xcode: Xcode 9.2 Build version 9C40b Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed) expo: ^25.0.0 => 25.0.0 react: 16.2.0 => 16.2.0 react-native: 0.52.0 => 0.52.0
target is iOS. Tested on an iPhone X.
Steps to Reproduce
See app.json above.
Expected Behavior
Text in app.json corresponding to NSMicrophoneUsageDescription’s value should be shown rather than the text found here.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (5 by maintainers)
My app was approved about 30 minutes ago, so the permissions updating clearly works. A note in the documentation about this behavior (updated permissions request text not showing up on the client but actually being in the build) would probably be useful for new Expo developers like myself.
Hello @terribleben, Hope you are doing great. I’ve recently started using expo and find it’s really great tool. I’m also following your comments/replies on different topics and they were a great help. I have just encountered an issue and really couldnt get my head around and then landed on this thread/issue which is exactly like the issue I’m facing. I’m using following settings in my app.json to support portrait and upside down orientation
“infoPlist”: { “UISupportedInterfaceOrientations”: [ “UIInterfaceOrientationPortrait”, “UIInterfaceOrientationPortraitUpsideDown” ] },
above settings don’t reflect on TestFlight build. Is there anyway you could help what’s causing these settings not to reflect in TestFlight Build ?