Long multipart/form-data POST timing out after 8~10 minutes (while app is in background). #201
Description
Hi,
Desc: Large POST multipart while app is in background times out after 8~10 minutes.
This isn't necessarily an issue for most, but my specific need was to post large files as multipart formdata.
I wanted to have the post request continue for over 20 minutes (arbitrary long time) while the app was in the background instead of timing out.
iOS: Issue was, dataTaskWithRequest was timing out after 8~10 minutes. Switching to uploadTaskWithRequest:fromFile:
made it live until finish.
I've a fork with the change in https://github.com/pkwak-sf/react-native-fetch-blob/tree/0.10.0_rn0.36.0
It also has a change for the same request in Android to run over IntentService (using a flag in config). Original purpose was to mimic downloadmanager (but for uploads), but my requirement didn't need the request to continue when app was manually closed. So instead of Service, left IntentService.
The changes in the fork are very specific to my requirements. Don't know if it would be beneficial to put back into the lib, but wanted to let you know what the issue was and how it resolved. If you want to pull it in, I'm more than happy to update/fix things to make that happen.
Thanks,