card-io / card.io-Cordova-Plugin

card.io Cordova Plugin
Other
174 stars 146 forks source link

iOS asks for NSPhotoLibraryUsageDescription #62

Open all43 opened 7 years ago

all43 commented 7 years ago

General information

Issue description

I have cordova app with only this plugin using camera installed. It work's well on the device, but when I trying to submit build into AppStore I get this mail from Apple:

"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."

I know how to set plist key, but I don't want to confuse app users because my app didn't use photo library(I hope plugin didn't use it too). How to avoid this error without setting photo library usage description?

TheBrockEllis commented 7 years ago

I am currently running into the same issue. I have an entry in my plist file for NSCameraUsageDescription as instructed by this repo's README file. However, no where does this project say anything about the Photo Library, but the app store is requiring me to provide a NSPhotoLibraryUsageDescription. Anyone have any idea?

all43 commented 7 years ago

It seems that one of plugin dependencies provokes such behaviour. Only solutions I've found - provide any text to NSPhotoLibraryUsageDescription. App will never ask for it actually.

        <config-file parent="NSPhotoLibraryUsageDescription" platform="ios" target="*-Info.plist">
            <string>card.io-iOS-SDK requirement. Not really used</string>
        </config-file>