Julian Steenbakker
Committed by GitHub

Merge pull request #435 from AdityaBirangal/patch-1

fix: Example - iOS Keys
Showing 1 changed file with 11 additions and 1 deletions
@@ -34,10 +34,20 @@ To use this version you must alter the mobile_scanner gradle file to replace `co @@ -34,10 +34,20 @@ To use this version you must alter the mobile_scanner gradle file to replace `co
34 ### iOS 34 ### iOS
35 **Add the following keys to your Info.plist file, located in <project root>/ios/Runner/Info.plist:** 35 **Add the following keys to your Info.plist file, located in <project root>/ios/Runner/Info.plist:**
36 NSCameraUsageDescription - describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor. 36 NSCameraUsageDescription - describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor.
37 - 37 +
38 **If you want to use the local gallery feature from [image_picker](https://pub.dev/packages/image_picker)** 38 **If you want to use the local gallery feature from [image_picker](https://pub.dev/packages/image_picker)**
39 NSPhotoLibraryUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor. 39 NSPhotoLibraryUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
40 40
  41 + Example,
  42 + ```
  43 + <key>NSCameraUsageDescription</key>
  44 + <string>This app needs camera access to scan QR codes</string>
  45 +
  46 + <key>NSPhotoLibraryUsageDescription</key>
  47 + <string>This app needs photos access to get QR code from photo library</string>
  48 + ```
  49 +
  50 +
41 ### macOS 51 ### macOS
42 Ensure that you granted camera permission in XCode -> Signing & Capabilities: 52 Ensure that you granted camera permission in XCode -> Signing & Capabilities:
43 53