expo's ios.infoPlist is not reflected

Asked 2 years ago, Updated 2 years ago, 137 views

I want to change the alert modal text that appears when I try to access the camera roll, but I can't.

Tried

"expo":{
"name": "Study abroad compass.",
"icon": "./images/CompassPioneering-02.png",
"version": "1.0.2",
"slug": "ryugakuCompass",
"sdkVersion": "27.0.0",
"ios": {
  "bundleIdentifier": "com.ryugakucompass.ryugakuCompass",
  "infoPlist": {
    "NSPhotoLibraryUsageDescription": "ryugakuCompass access your photo library so that you can change your profile image."
  }
}

Write app.json as shown in , point to version, and

exp publish

or

exp build:ios

I hit at the terminal, but there was no change.
Cannot be changed from this
If anyone knows how to change the sentence in modal, please let me know

javascript ios json react-native

2022-09-30 11:22

2 Answers

I understand that the wording of the permission dialog does not change in Expo.
Have you seen the official documentation?
https://docs.expo.io/versions/latest/sdk/permissions
https://docs.expo.io/versions/latest/guides/app-stores.html#system-permissions-dialogs-on-ios

I think this is also helpful.
https://qiita.com/h-sakano/items/00250f55b2370b8c6f4c

Did you do an instant run at build:ios etc. during the build?


2022-09-30 11:22

Perhaps the reason why the questioner observed that the behavior had not changed was because of the expo client app (no iOS simulator and on the actual machine).

The messages in these permission dialogs are "statically determined for each app." That is, when you install the app, the message is fixed, and the expo client app actually looks like a questioner's posted image.To display a dialog according to infoPlist specified in app.json, you must install the app as a single iOS app.

Therefore, if you put the build deliverables on the actual machine with testFlight, you will be able to see if they are set up correctly.


2022-09-30 11:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.