skip to Main Content

How can I write file in Flutter abive android 33 phone. I need to get the permission for write. Now , its show only denied.

I want to know how to ask to get permission for file read write with flutter for above android 13 phones

2

Answers


  1. add uses- permission in your **androidManifest.xml** file :
    
        <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
         android:maxSdkVersion="33" />
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" 
           android:maxSdkVersion="33"  />
    
    Login or Signup to reply.
  2. READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions have been marked deprecated and have been fully removed/ disabled since Android SDK 33 (Android 13).

    If your application needs access to media files Google recommends using the READ_MEDIA_IMAGES, READ_MEDIA_VIDEOS or READ_MEDIA_AUDIO permissions instead Read and Write permission. To request these permissions make sure the compileSdkVersion in the android/app/build.gradle file is set to 33.

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