September 2019
Beginner
512 pages
12h 52m
English
As we did for contacts, in iOS, we need to provide an appropriate description in the Info.plist file so that the user knows why the app needs the camera permission. Refer to the code from the ios/Runner/Info.plist file:
<dict> ... <key>NSCameraUsageDescription</key> <string>You can add a profile picture right from the camera</string> <key>NSPhotoLibraryUsageDescription</key> <string>This app requires access to the photo library.</string> <key>NSMicrophoneUsageDescription</key> <string>This app does not require access to the microphone.</string></dict>
When the app tries to access the camera in iOS, the system will ask for the user's permission by showing the provided description.
Read now
Unlock full access