Cordova helper to download and eventually unzip external files
- Configure the ExtractZipFilePlugin phonegap plugin as usual
- Copy cordovaDownloadUtil.js in www and link in index.html
cordovaDownloadUtil.url = "http://example.com/archive.zip";
cordovaDownloadUtil.unzip = true; //if true unzip and remove the downloaded file.
cordovaDownloadUtil.extractCallback = function(obj){
//perform action after unzip with success (optional)
}
cordovaDownloadUtil.download()
Tested with cordova 2.7.0
Apache License, Version 2.0.