mramonlopez/cordova-plugin-file-downloader

Downloader.localFolder.toURL is not a function.

Opened this issue · 0 comments

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: fastrde#15 (comment)

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?