A Cordova plugin to download file in system's default download manager
- Android (SDK >= 11)
cordova plugin add https://github.com/sirius60111/cordova-plugin-downloadmanager
//once device is ready
var fail = function (message) {
alert(message)
}
var success = function (data) {
console.log("succes");
}
cordova.plugins.DownloadManager.download(
"URL to download",
"File name",
"File mimeType",
"Notification title",
"Notification description",
success,
fail);
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request