Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82388

iTunes connect error missing NSPhotoLibraryUsageDescription key

$
0
0

Hi, today I learned that the camera widget for phonegap does not work in it's current configuration. If you create a mobile package from Sprintr, build it in phonegap and upload it using iTunes connect, you'll receive an email from Apple saying: 

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.

Since iOS 10 it's mandatory to add a NSCameraUsageDescription and NSPhotoLibraryUsageDescription in the info.plist. To fix this you need to add the CAMERA_USAGE_DESCRIPTION and PHOTOLIBRARY_USAGE_DESCRIPTION keys to your phonegap config.xml i.e.

<gap:plugin name="cordova-plugin-camera" source="npm" version="2.3.1"><variable name="CAMERA_USAGE_DESCRIPTION" value="To create a profile picture" /><variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="To create a profile picture" /></gap:plugin>

Can anyone confirm this or create ticket?


Viewing all articles
Browse latest Browse all 82388

Trending Articles