Skip to content

Commit 56eb6eb

Browse files
author
Bryant Luk
committed
Add NSCameraUsageDescription doc and update sample plists
1 parent 4493b60 commit 56eb6eb

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

Release/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ pod 'CardIO'
9595
1. Add [card.io's open source license acknowledgments](acknowledgments.md) to
9696
[your app's acknowledgments](http://stackoverflow.com/questions/3966116/where-to-put-open-source-credit-information-for-an-iphone-app).
9797
2. Refer to the header files for more usage options and information.
98+
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.
9899

99100
### Sample code
100101

Release/SampleApp-Swift/SampleApp-Swift/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@
4343
<string>UIInterfaceOrientationLandscapeLeft</string>
4444
<string>UIInterfaceOrientationLandscapeRight</string>
4545
</array>
46+
<key>NSCameraUsageDescription</key>
47+
<string>To scan credit cards.</string>
4648
</dict>
4749
</plist>

Release/SampleApp/ScanExample/ScanExample-Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@
4343
<string>UIInterfaceOrientationLandscapeLeft</string>
4444
<string>UIInterfaceOrientationLandscapeRight</string>
4545
</array>
46+
<key>NSCameraUsageDescription</key>
47+
<string>To scan credit cards.</string>
4648
</dict>
4749
</plist>

icc-Framework-Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
<string></string>
3535
<key>LSRequiresIPhoneOS</key>
3636
<true/>
37+
<key>NSCameraUsageDescription</key>
38+
<string>To Scan cards</string>
3739
<key>NSMainNibFile</key>
3840
<string>MainWindow</string>
3941
<key>NSMainNibFile~ipad</key>

0 commit comments

Comments
 (0)