EDIT: All major plugins have been updated to no longer use variables. To establish usage descriptions, you must use the tag edit-config
in the config.xml
following way:
<edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
<string>need camera access to take pictures</string>
</edit-config>
See iOS Quirks
OLD ANSWER: First remove the Cordova-plugin-camera using cordova plugin rm cordova-plugin-camera
And then install it again with:
cordova plugin add cordova-plugin-camera --variable PHOTOLIBRARY_USAGE_DESCRIPTION="your usage message"
source
share