I am downloading a file using FlutterDownloader.
final taskId = await FlutterDownloader.enqueue(
url: url,
savedDir: (await getApplicationDocumentsDirectory()).path,
showNotification:
true, // show download progress in the status bar (for Android)
openFileFromNotification:
true, // click on the notification to open the downloaded file (for Android)
);
In Android, the notification shows in the notification bar. But in iOS no notification shows even though the file is successfully downloaded and is showing in the "Files" app under the project name.
Solution needed: How to show the download notification in iOS or a snack bar with the link to the iOS phone "Files" app under the project folder.
Any help will be highly appreciated. Thank you.
Try using the flutter dio package which has a download function with progress callbacks. Set the total length by setting content length in the header.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With