Cordova HTTP Plugin how to disable timeout?

406 Views Asked by At

the default timeout is 60, if I set timeout to 0 it will still work, how to disable it completely?

1

There are 1 best solutions below

2
On

I don't think you can disable timeout on the plugin, but you can use cordova.plugin.http.setRequestTimeout(number_in_seconds);

Just put a high number in number_in_seconds should do the trick