Skip to content

sirius60111/cordova-plugin-downloadmanager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-downloadmanager

A Cordova plugin to download file in system's default download manager

Supported Platforms

  • Android (SDK >= 11)

Installation

cordova plugin add https://github.com/sirius60111/cordova-plugin-downloadmanager

How to Use

//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);

Result

screenshot

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A Cordova plugin to download file in system's default download manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 95.5%
  • JavaScript 4.5%