Skip to content
Advertisement

Error code 1 cordova plugin file transfer android

I have a problem on cordova (android), when I try to download a file (a .zip exactly), It always occured a error code 1. The url downloads well on my computer. Here is the code :

JavaScript

Thanks

Advertisement

Answer

The error was that I forgot to specify the name of the file when it will be downloaded on the device, I didn’t know I had to specify that. So here is the corrected code (modifications at lign 6) :

JavaScript
Advertisement