Answers for "flutter image_picker ios crash"

1

flutter image_picker ios crash

Add the following keys to your Info.plist file, located in <project root>/ios/Runner/Info.plist:

NSPhotoLibraryUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
NSCameraUsageDescription - describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor.
NSMicrophoneUsageDescription - describe why your app needs access to the microphone, if you intend to record videos. This is called Privacy - Microphone Usage Description in the visual editor.

Example:

    <key>NSPhotoLibraryUsageDescription</key>
    <string>Storage permission required to pick image</string>
Posted by: Guest on February-09-2022

Browse Popular Code Answers by Language