benjaminmwilson / cordova-plugin-downloader

Cordova Downloader Plugin with no cordova-file-transfer dependency
Apache License 2.0
9 stars 7 forks source link

plugin doesn't work #7

Open massimilianocom opened 3 years ago

massimilianocom commented 3 years ago

Greetings I am trying to make this plugin work in my app but it does nothing I have dis ejected the script I used, I have done nothing but copy paste modifying only uri and folder:

` var dl = new download();

dl.Initialize({
    fileSystem: cordova.file.dataDirectory,
    folder: "Download",
    unzip: true,
    remove: true,
    timeout: 0,
    success: DownloaderSuccess,
    error: DownloaderError,
    headers: [{
        Key: 'Authorization',
        Value: 'Basic ' + btoa(token)
    }]
});

dl.Get("https://www.radiomatese.it/Download/RadioMatese.apk");

function DownloaderError(err) {
    console.log("download error: " + err);
    alert("download error: " + err);
}

function DownloaderSuccess() {
    navigator.app.exitApp();
}

`

It does absolutely nothing

benjaminmwilson commented 3 years ago

As the README says, this plugin isn't being maintained anymore. Just for reference.

Assuming it's possible for it to work with the version of Cordova you are using I'd check:

Anki2712 commented 2 years ago

I want to use it with ionic3 and i have installed plugin but unable to create dl object for it.