window.cordova.downloader.init stating undefined. Error shown in (Safari Preview)
Opened this issue · 1 comments
Hi,
I was trying to download a document from internet (via a URL).
Using this plugin for angular application (building ios app using cordova)
Here's the code i wrote for it.
Using cordova-plugin-file-downloader
window.cordova.downloader.inint({folder: "Downloads"});
window.downloader.get(filePath); // filePath will have the url of the file to be downloaded.
I am having the same problem. I used "cordova plugin add cordova-plugin-file-downloader". But the "cordova build ios" command does not put it under the pluggins folder. In the package.json file, it is in the devDependencies object but is not listed in the cordova.plugins object. If I manually add it to the cordova.plugins object in the package.json file, it does not help. Thanks.