skip to Main Content

I use image picker and gallery saver in my project. But I don’t know how to give permission for iOS I know how add permission in Android but I can’t understand where I put permission and what permission I want for camera and gallery. I completed Android permission but I don’t know how I put permission on iOS.

2

Answers


  1. Open the Info.plist file in the ios/Runner folder of your Flutter project.

    Add the following keys to the Info.plist file:

    <dict>
        <!-- Other keys and configurations... -->
        
        <key>NSCameraUsageDescription</key>
        <string>Your app needs access to the camera to take photos and videos.</string>
        
        <key>NSPhotoLibraryUsageDescription</key>
        <string>Your app needs access to the photo library to select photos and videos.</string>
    </dict>
    
    Login or Signup to reply.
  2. You need the edit the Info.plist file in your XCode project like here or here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search