Open sabari7320 opened 5 months ago
i have same issue if anyone knows exact solution let me know
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();
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
Desktop (please complete the following information):
Device information:
Additional context