Valentin Shamardin Valentin Shamardin - 1 month ago 35
iOS Question

Is empty NSCameraUsageDescription accepted?

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?

Answer

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.