W
W
Well here again 252018-01-29 18:36:45
iOS
Well here again 25, 2018-01-29 18:36:45

Error - Missing Info.plist key - How to add entries to Info.plist in Phonegap?

Apple reported that Missing Info.plist key

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.

Working solution:
//добавить в config.xml

<plugin name="cordova-plugin-camera" spec="~2.3.0">
   <param name="CAMERA_USAGE_DESCRIPTION" value="The app would like to access the camera when you attach photos to content." />
   <param name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="The app would like to access the photo library when you attach images to content." />
</plugin>

There is another option but I haven't tried it:
<config-file platform="ios" parent="NSPhotoLibraryUsageDescription" mode="replace">
   <string>Allows access to photo library</string>
</config-file>

<config-file platform="ios" parent="NSBluetoothPeripheralUsageDescription" mode="replace">
  <string>Allows access to bluetooth devices</string>
</config-file>

<config-file platform="ios" parent="NSCameraUsageDescription" mode="replace">
   <string>Allows usage of the camera</string>
</config-file>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
briahas, 2018-01-30
@briahas

removed after question changed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question