Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter iOS How to show download notification success?

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.

like image 373
Awais Ahmad Avatar asked Sep 11 '25 11:09

Awais Ahmad


1 Answers

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.

like image 77
markhorrocks Avatar answered Sep 14 '25 01:09

markhorrocks