I had a situation that I already downloaded the file via the web api as an arrayBuffer and processed the possible responses from the server. I needed only to save this file and call the notification via downloadManager.
To save the file to the Downloads folder, I used cordova-plugin-file. And in order to just show the notification, I found that downloadManager has a special method.
Hello. I added a method that calls the addCompletedDownload method on the DownloadManager object. https://developer.android.com/reference/android/app/DownloadManager.htm
I had a situation that I already downloaded the file via the web api as an arrayBuffer and processed the possible responses from the server. I needed only to save this file and call the notification via downloadManager. To save the file to the Downloads folder, I used cordova-plugin-file. And in order to just show the notification, I found that downloadManager has a special method.