Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added addCompletedDownload method call for the case when the file has already been downloaded #2

Merged
merged 1 commit into from
Dec 13, 2019

Conversation

SlidEnergy
Copy link
Contributor

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.

@vasani-arpit
Copy link
Owner

Thanks for PR. 👍
I'll test it and merge.

@vasani-arpit vasani-arpit merged commit 0c8a0cc into vasani-arpit:master Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants