Flutter-permission-handler: [4.2.0+hotfix.3] storage permission is granted but permission denied when trying to write to downloads folder

Created on 8 Jan 2021  路  6Comments  路  Source: Baseflow/flutter-permission-handler

馃悰 Bug Report

I'm running a version of the package a bit older, but basically I would like to download a file and write it to the downloads folder. I request the permission for storage and I can see in my logs it is granted, but when I try to write the file it gives me an OS error with permission denied.

Expected behavior

Being able to write to the external downloads folder on Android without getting permission problems.

Reproduction steps

install version 4.2.0+hotfix.3 of the package, try to write a file to any folder in external storage

Configuration

Version: 4.2.0+hotfix.3

Platform:

  • [ ] :iphone: iOS
  • [x ] :robot: Android

Update 14-01-2021:
I've updated to the latest version, but still i'm getting permission denied on writing to the Download folder on Android.

All 6 comments

Android 11?

@Clashkid155 Android 10, probably should鈥檝e mentioned that

Same problem, But on IOS

Can you confirm that you have added android:requestLegacyExternalStorage="true" under application tag in androidmanifest.xml?

@shatanikmahanty wow, I can't believe I actually forgot to add that tag.. That solved my current issue! My follow up question is actually will it be impossible to access the Download folder from Android 11 on?

https://developer.android.com/about/versions/11/privacy/storage
You can find all information on how to access storage for android 11 from the above link

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lvlrSajjad picture lvlrSajjad  路  3Comments

igoriuz picture igoriuz  路  5Comments

marcelderkskarlmax picture marcelderkskarlmax  路  5Comments

abhinavsingh picture abhinavsingh  路  5Comments

shinriyo picture shinriyo  路  5Comments