question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permissions explanations not being overwritten by ios.infoPlist in app.json

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Feb 20, 2018

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.

0reactions
knawaz771commented, Dec 21, 2018

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 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

expo build doesn't override the default permission strings
When I submit, app gets rejected because the default strings are showing instead of customized ones. I opened Info.plist from ipa folder ...
Read more >
app.json / app.config.js - Expo Documentation
Dictionary of arbitrary configuration to add to your standalone app's native Info.plist. Applied prior to all other Expo-specific configuration. No other ...
Read more >
Build settings reference | Apple Developer Documentation
A detailed list of individual Xcode build settings that control or change the way a target is built.
Read more >
Integrations - Bitrise
... from an app bundle. Cake Script. Cake (C# Make) is a cross platform build automation system ... Distribute your iOS app through...
Read more >
Firebase Apple SDK Release Notes - Google
Bitcode is no longer included in Firebase binary distributions. Xcode 14 does not support bitcode. tvOS apps using a Firebase binary distribution will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found