I need to migrate my application from android 12 to android 13 since in android 12 it does not show any errors, however when testing the app on a device with android 13 it gives me the following error:
[MethodChannelFilePicker] Platform exception:
PlatformException(read_external_storage_denied, User did not allow
reading external storage, null, null).
I’ve tried adding validations in the manifest, like the ones in:
I have also tried adding these validations in the main:
2
Answers
Add the following permission in your manifest.xml inside
If it still does not work out, upgrade or change the package you use for picking files and check the documentation.
recommended : https://pub.dev/packages/file_picker/versions/5.2.5
Referring to:
https://developer.android.com/about/versions/13/behavior-changes-13
You might want to request the individual Images/Video/Audio permissions if android 13+ is detected.