uekyo
uekyo

Reputation: 431

NSCameraUsageDescription doesn't work on Expo Application

I want to change my APP'S camera permission message tho, I couldn't do it. I added the infoPlist on the app.json like the below photo.

enter image description here

Do you know why it doesn't work? Now, apple rejected my app because the camera permission message is too obscure.

[Expo info] sdkVersion: 36.0.0 version: 1.0.3

Upvotes: 3

Views: 3366

Answers (3)

Kirill
Kirill

Reputation: 11

Steps that fixed the issue in my project:

  1. Add "NSCameraUsageDescription" to infoPlist
  2. Delete ios/nameOfYourProject/Info.plist file
  3. Run npx expo run:ios.

Upvotes: 0

Ekaansh Arora
Ekaansh Arora

Reputation: 1304

Execute expo prebuild to modify the ./ios and ./android files to reflect the changes you make to your app.json file.

Upvotes: 4

uekyo
uekyo

Reputation: 431

I resolved this problem. Although It didn't reflect on Expo, After cleaning and rebuilding, it works.

The clean command is below.

watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && rm -f package-lock.json && rm -f yarn.lock && npm cache verify && npm install

Upvotes: 1

Related Questions