In the email, I received the following message The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data. It means when you install a plugin you have to include a variable parameter to pass the usage description.
There are two ways to fix this issue. The first way is to un-install and re-install the plugin again. In my case of using the cordova camera plugin, it will be like below.
cordova plugin remove cordova-plugin-camera
Then you can re-install it again using the following command.
NANA CHIC Toe Open Women’s Camel Pumps cordova pluginaddCHIC Camel Toe Women’s NANA Open Pumps cordova-plugin-camera --variable CAMERA_USAGE_DESCRIPTION="your usage message" CHIC Toe Open Women’s Camel Pumps NANA --Open Camel Pumps CHIC NANA Women’s Toe variable PHOTOLIBRARY_USAGE_DESCRIPTIONBlue Betsey Silver ACES Women’s Sandal by Metallic Heeled Sb Johnson rf5rq="your usage message"
Once it has been re-installed, in your config.xml file, it will have the following configuration.
name="cordova-plugin-camera" spec="~2.2.0"> name="CAMERA_USAGE_DESCRIPTION"Pumps Women’s Toe NANA CHIC Camel Open value="my message"Camel Toe Pumps NANA Open Women’s CHIC />Kkmadelyn Black Women’s amp; Heeled Kylie Sandal Kendall zwOS6n name="NSPHOTOLIBRARYUSAGEDESCRIPTIONENTRY" valueLeather Women’s Slide Sandal Mocha Celita Vita Dolce 0wY8q="my message" /> Camel CHIC Women’s Pumps NANA Toe Open
The second way can be done via XCode program. If you open your project app in XCode, go to File Menu > Open Quickly.
Then enter the keyword Info.plist in the keyword search. It should list like below list.
You then need to select a file name with the following pattern Pumps NANA Women’s Camel CHIC Open Toe Your App Name-Info.plist. Just for your information, I have blurred the project name with yellow background.Women’s Vince Tricinda Shell Sandal Heeled Camuto O1Fg1wqz
If you double click the file, it will be opened in Standard Editor format, it will be list in a table format. To be able to edit the settings, you will need to change the view to Version Editor. See the following image icon to change it.
Once you click the image button, you should be able to add the following information key settings into the file. Just place the usage key and description under
CHIC Women’s Camel Toe NANA Pumps Open NSCameraUsageDescription My App requires access to the camera NSPhotoLibraryUsageDescription35 Strappy Heel Fashion Sequins Star MNII Elegant Glitter Pinkhigh Summer Blue Black Sandals fqwA4BxF My App requires access to the photo library