flutter_downloader icon indicating copy to clipboard operation
flutter_downloader copied to clipboard

Flutter downloader is not working in Android (Permission denied)

Open getSami147 opened this issue 1 year ago • 2 comments

Describe the bug I am Trying the download the Audio but In Android 14 its not downloading the Audio this is google pixel 5 physical device , I show the error Message "Permission denied" I show the dialogue box when some one decline the permission then the app forward to the App permission setting ,I have allow the permission on device but still show the same error I provided all the permission in manifast.xml,

please provide the solution or fix and Update the issue, thank you

IN the device all the permission is allowed but still error (Permission denied )

<application android:requestLegacyExternalStorage="true"

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Device information:

  • Device: [ Google Pixel 5 ]
  • OS: [ Android 14]
  • plugin version [e.g. v^1.11.6]

Additional context

getSami147 avatar Feb 21 '24 11:02 getSami147

@getSami147 Please add example project

balajiks-dev avatar Feb 22 '24 10:02 balajiks-dev

I am facing the same issue. I found out that in Android 13+ versions, the write and read storage permissions have been deprecated. Check out this library https://pub.dev/packages/permission_handler

rafaelqcosta avatar Mar 06 '24 13:03 rafaelqcosta