diff --git a/README.md b/README.md index ee91b28..c7f0fe0 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ pod 'CardIO' 1. Add [card.io's open source license acknowledgments](acknowledgments.md) to [your app's acknowledgments](http://stackoverflow.com/questions/3966116/where-to-put-open-source-credit-information-for-an-iphone-app). 2. Refer to the header files for more usage options and information. +3. You should add the key [`NSCameraUsageDescription`](https://developer.apple.com/library/prerelease/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW24) to your app's `Info.plist` and set the value to be a string describing why your app needs to use the camera (e.g. "To scan credit cards."). This string will be displayed when the app initially requests permission to access the camera. ### Sample code diff --git a/SampleApp-Swift/SampleApp-Swift/Info.plist b/SampleApp-Swift/SampleApp-Swift/Info.plist index cdc9d2f..5b3aff0 100644 --- a/SampleApp-Swift/SampleApp-Swift/Info.plist +++ b/SampleApp-Swift/SampleApp-Swift/Info.plist @@ -43,5 +43,7 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + NSCameraUsageDescription + To scan credit cards. diff --git a/SampleApp/ScanExample/ScanExample-Info.plist b/SampleApp/ScanExample/ScanExample-Info.plist index 95042bd..80ad881 100644 --- a/SampleApp/ScanExample/ScanExample-Info.plist +++ b/SampleApp/ScanExample/ScanExample-Info.plist @@ -43,5 +43,7 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + NSCameraUsageDescription + To scan credit cards.