Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter downloader is not downloading in Android versions of 13 and 14 #959

Open
sabari7320 opened this issue May 29, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@sabari7320
Copy link

Describe the bug

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: [e.g. iPhone 13]
  • OS: [e.g. iOS 15.4]
  • plugin version [e.g. v1.8.0]

Additional context

@sabari7320 sabari7320 added the bug Something isn't working label May 29, 2024
@sabari7320
Copy link
Author

i have same issue if anyone knows exact solution let me know

@sabari7320
Copy link
Author

i resolved in my code has this issue

void PDFDownloadURL(String url,String name) async {
print("Applicant Resume download");
final mediastatus=await Permission.mediaLibrary.request();

print(mediastatus);

if(mediastatus.isGranted){
  final baseStorage=await getExternalStorageDirectory();
  final id=await FlutterDownloader.enqueue(
      url: url, savedDir:baseStorage!.path,
      fileName: "${name}_Resume.pdf",
    showNotification: true, // show download progress in status bar (for Android)
    openFileFromNotification: true, // click on notification to open downloaded file (for Android)
  );
}
else{
  print("NO permission");
}

}
I added this Permission.mediaLibrary.request();
insted of Permission.storage.request();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant