mramonlopez / cordova-plugin-file-downloader

Phonegap plugin to download a list of files or a single file to the phone, check consistency and unzip if necessary (Android and ios)
MIT License
23 stars 19 forks source link

Downloader.localFolder.toURL is not a function. #15

Open matiasmm opened 3 years ago

matiasmm commented 3 years ago

I've been having the issue mentioned here:

Downloader.localFolder.toURL is not a function. This error happens the second time I try to download a file this way:

downloader.init({folder: "testApp"});
downloader.get("http://yourhost.de/some.zip");

I was actually able to solve it thanks to this comment: https://github.com/fastrde/cordova-plugin-fastrde-downloader/issues/15#issuecomment-216864526

I think it should be documented that downloader.get can only be executed after DOWNLOADER_initialized has triggered.

Would it be possible to add this piece of information in the readme?