I have successfully downloaded a file using the phonegap download method. I am downloading the file to local storage in the Download folder on my android phone. I would like to have some kind of notification from the Download Manager that a file has been downloaded and then click on the download to view. This is what the phonegap download method lacks.
Does phonegap have access to the Android DownloadManager class?
The android downloader plugin works great. However if you are running on cordova 2.0 you will need to modify the code for adding a constructor. The current code is:
…
Since addPlugin no longer works on cordova 2.0 you will need to remove the addConstructor method and replace it with:
And on the exec method should look like this:
Instead of using the Phonegap object. After I did all this, the plugin worked. The entire js should look like this: