nativescript-background-http icon indicating copy to clipboard operation
nativescript-background-http copied to clipboard

Ability to set timeout

Open vahidvdn opened this issue 4 years ago • 1 comments

Though that is mentioned here and the issue is closed, there is no way to add a timeout to the options (e.g. timeout:3600000) and this is really critical. Any idea about adding this feature?

vahidvdn avatar Jul 16 '20 08:07 vahidvdn

Btw, I could handle it by adding some native codes for android:

net.gotev.uploadservice.UploadService.HTTP_STACK = new  net.gotev.uploadservice.http.impl.HurlStack(true, false, 60000, 60000);

But that would be really nice to support it as an option for both android and iOS.

vahidvdn avatar Jul 16 '20 09:07 vahidvdn