In my app i add pdf download functionality using flutter_downloader package.
below is my Function to download a file.
static Future<String?> downloadPdf(String path, String downloadLink) async {
final taskId = await FlutterDownloader.enqueue(
url: downloadLink,
savedDir: path,
showNotification: true,
openFileFromNotification: true,
saveInPublicStorage: true,
);
return taskId;
}
when i download any file then i got notification but in notification it shows file path as below image.
in above image it shows link of file, so how i can display other thing like your file have downloaded in the place of file link?
Note: - my download api link is based on id not a file name for example - "api/xyz/xyz/33".
Please help me.
thank you.