Problem submitting to Apple


#1

I get the following email:
Dear developer,
We have discovered one or more issues with your recent delivery for “MantraCPC Dist”. 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.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team

I found the following by searching for this:
NSPhotoLibraryUsageDescription

NSPhotoLibraryUsageDescription
$(PRODUCT_NAME) photos and video use.

Do I enter that in config.xml?
DoI leave PRODUCT_NAME as is or do I replace it with something else?


#2

This is what I used and it worked. CPC is the name of my app:

<gap:plugin name="cordova-plugin-camera" source="npm" >
  <variable name="CAMERA_USAGE_DESCRIPTION" value="CPC camera use" />
  <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="CPC  photo use" />
</gap:plugin>

<gap:plugin name="cordova-plugin-geolocation" source="npm"  >
  <variable name="GEOLOCATION_USAGE_DESCRIPTION" value="CPC Location use." />
</gap:plugin>

#3

Hello Mario,

Place this in Config.xml:

<gap:config-file platform="ios" parent="NSPhotoLibraryUsageDescription" overwrite="true">
  <string>Place here a description to the app user</string>
</gap:config-file>

#4

Thanks Salvador. I used this and it was approved by Apple. I will keep your suggestion handy:

<gap:plugin name="cordova-plugin-camera" source="npm" >
  <variable name="CAMERA_USAGE_DESCRIPTION" value="CPC camera use" />
  <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="CPC  photo use" />
</gap:plugin>

<gap:plugin name="cordova-plugin-geolocation" source="npm"  >
  <variable name="GEOLOCATION_USAGE_DESCRIPTION" value="CPC Location use." />
</gap:plugin>

#5

They’re basically the same thing. This code has been added to the Tech Note:

http://wiki.nsbasic.com/Using_the_PhoneGap_API#Camera

Thank you!

George Henne
NS BASIC Corporation
http://www.nsbasic.com


#6

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.