Skip to content

Permissions

Midori edited this page Jul 4, 2023 · 43 revisions

Settings

Here we will only discuss the versions supported by the latest Flutter stable (Android >= 21, iOS >= 11).
Also, there may be changes in the specifications.

Android

In Android <23, Write permissions to the gallery app are allowed by default.

In Android >=23 && <29, Writing to the gallery app requires the explicit statement
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> in the AndroidManifest.xml.

In Android >=29, Write permissions to the gallery app are allowed by default.

💡 In older articles and projects, sometimes it is written to add the android:requestLegacyExternalStorage="true" key. This was added as a temporary measure when Google changed the system regarding storage and its permissions in Android 10, and is basically unnecessary.

Docs

iOS

In iOS >=11, Write permissions to the gallery app requires the explicit statement
<key>NSPhotoLibraryAddUsageDescription</key> in the info.plist.

Docs

Dialogs

Android

Talks about the version to which access is not granted by default (Android >=23 && <29).
It will appear until the user checks the "Never show again" box in the dialog
and chooses to reject it, or until the user chooses to reject it from the app settings.

iOS

Basically, it appears only once.

Docs

Clone this wiki locally