Ionic IOS – Missing Info.plist key

To process your delivery, the following issues must be corrected:

Missing Info.plist key – This app attempts to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.

cordova plugin rm cordova-plugin-camera

cordova plugin add cordova-plugin-camera --variable CAMERA_USAGE_DESCRIPTION="this app will use your camera" --variable PHOTOLIBRARY_USAGE_DESCRIPTION="this app will access to your photo library"


iOS Quirks

Since iOS 10 it’s mandatory to add a NSCameraUsageDescription and NSPhotoLibraryUsageDescription in the info.plist.

NSCameraUsageDescription describes the reason that the app accesses the user’s camera.
NSPhotoLibraryUsageDescription describes the reason the app accesses the user’s photo library.

When the system prompts the user to allow access, this string is displayed as part of the dialog box.

To add this entry you can pass the following variables on plugin install.



cordova plugin add cordova-plugin-camera –variable CAMERA_USAGE_DESCRIPTION=”your usage message” –variable PHOTOLIBRARY_USAGE_DESCRIPTION=”your usage message”

If you don’t pass the variable, the plugin will add an empty string as value.