Cordova Plugin Downloader

Cordova plugin for downloading files from server.
Alternatives To Cordova Plugin Downloader
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Cordova Plugin Wechat1,1603213 years ago27April 23, 202043Objective-C
A cordova plugin, a JS version of Wechat SDK
Jpush Phonegap Plugin9223662 months ago70July 28, 202141mitJavaScript
JPush's officially supported PhoneGap/Cordova plugin (Android & iOS). 极光推送官方支持的 PhoneGap/Cordova 插件(Android & iOS)。
Cordova Plugin Ble Central902831022 days ago36July 11, 202252otherJava
Bluetooth Low Energy (BLE) Central plugin for Apache Cordova (aka PhoneGap)
Cordova Admob Pro6932a year ago5January 10, 201762mitJava
:fire: Cordova Plugin for Google AdMob, DFP, ADX. Easy monetization using mobile Ad, with single line of JavaScript. Compatible with Cordova CLI, Inoic, PhoneGap Build, etc.
Cordova Plugin Iosrtc6791714 months ago60June 17, 202220mitObjective-C
Cordova iOS plugin exposing the WebRTC W3C API
Cordova Plugin Admob Free5087042 years ago48May 22, 2019254mitJava
Cordova AdMob Plugin
React Native Cordova Plugin436
36 years ago10April 27, 201612iscJavaScript
Cordova Plugin Adapter for React Native
Cordova Imagepicker3976022 years ago4September 29, 2016193otherJava
Cordova Plugin For Multiple Image Selection
Cordova Plugin Badge38021563 years ago12November 19, 201815apache-2.0JavaScript
Access and modify badge numbers
Vue Cordova3175014 years ago5December 07, 20167JavaScript
Vue.js plugin for Cordova
Alternatives To Cordova Plugin Downloader
Select To Compare


Alternative Project Comparisons
Readme

Downloader Cordova Download Plugin

Cordova plugin for downloading files from server.

Supported Platforms

  • Android
  • iOS

Installation

This requires Phonegap / Cordova CLI 3.0 +

  • Cordova CLI
cordova plugin add https://github.com/Whebcraft/cordova-plugin-downloader
  • Phonegap Build
    <plugin spec="https://github.com/Whebcraft/cordova-plugin-downloader.git" source="git" />

Usage Android

var Downloader = window.plugins.Downloader;

var downloadSuccessCallback = function(result) {
       // result is an object
        {
            path: "file:///storage/sdcard0/documents/My Pdf.pdf", // Returns full file path
            file: "My Pdf.pdf", // Returns Filename
            folder: "documents" // Returns folder name
        }
       console.log(result.file); // My Pdf.pdf
};

var downloadErrorCallback = function(error) {
    // error: string
};

var options = {
    title: 'Downloading File', // Download Notification Title
    url: "http://www.website.com/file.pdf", // File Url
    path: "My Pdf.pdf", // The File Name with extension
    description: 'The pdf file is downloading', // Download description Notification String
    visible: true, // This download is visible and shows in the notifications while in progress and after completion.
    folder: "documents" // Folder to save the downloaded file, if not exist it will be created
}

Downloader.download(options, downloadSuccessCallback, downloadErrorCallback);

Usage iOS

var Downloader = window.plugins.Downloader;

var downloadSuccessCallback = function(folder) {
       // folder: string where the file has been downloaded
};

var downloadErrorCallback = function(error) {
    // error: string
};


var options = {
    url: "http://87.76.16.10/test10.zip", // File Url
    path: "test10.zip", // The File Name with extension
}

Downloader.download(options, downloadSuccessCallback, downloadErrorCallback);

Get download folder

The file will be downloaded within the device storage not SdCard.(Android)

WARNING: will overwrite existing file if it already exists.

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Popular Plugin Projects
Popular Cordova Plugin Projects
Popular Libraries Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Plugin
Downloader
Cordova Plugin