0

If your app uses camera, you have to set NSCameraUsageDescription in InfoPlist.strings. But what if I don't want to use any custom message? Is it accepted to set empty empty NSCameraUsageDescription like this:

NSCameraUsageDescription = "";

Docs say a bit strange about this: If your app attempts to access the device’s camera without a corresponding purpose string, your app exits. What is "exits"? Will my app rejected?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Valentin Shamardin
  • 3,569
  • 4
  • 34
  • 51

2 Answers2

0

No it is not accepted .

iOS already required permissions to access microphone, camera, and media library earlier (iOS6, iOS7), but since iOS10 the apps will crash if you don't provide the description why you are asking for the permission.

from : https://stackoverflow.com/a/38498347/3901620

Community
  • 1
  • 1
KKRocks
  • 8,222
  • 1
  • 18
  • 84
0

You can use

NSCameraUsageDescription = "";

Without any message, you just need to put the key in the plist. Also in the doc

If your app attempts to access the device’s camera without a corresponding purpose string, your app exits.

They mentioned exits, it means the app will get closed if you don't put that string but i have checked it now, and the popup is showing without any message just the title.

Rajat
  • 10,977
  • 3
  • 38
  • 55