react-native-background-upload
react-native-background-upload copied to clipboard
iOS: Lost connection to background transfer service
Every so often, when uploads happen in the background (kicked off by a significant location change update), we get an error: Lost connection to background transfer service
Same problem as described in this other lib: https://github.com/joltup/rn-fetch-blob/issues/20
Thanks for the report. Do you have more information about the exception such as a stack traceback? How would you prefer the exception should be handled by this library?
@TSMMark, I believe it's just an error reported back from the OS, not an exception (updated the issue description). Perhaps this lib could offer a retry?
is the error reported back form the OS a NSURLErrorBackgroundSessionWasDisconnected thrown from here?
+1 I have same issue, it not resolved
same...
Same here... still a problem
+1 same issue
+1 same issue. Running into this on a production build, please follow up this bug immediately.
+1 ... I'm having this issue from time to time too and I tried to catch the error, and make another 5 attempts but it throws this error every time.
I have not idea what program you guys are talking about, but I am having the same error on Canvas Instructure.
I've made some tests & looks like it's because of usage NSURLSessionDataTask *uploadTask;
WHY?
Please take a look at this https://developer.apple.com/documentation/foundation/nsurlsessionuploadtask

As for me change to NSURLSessionUploadTask
& add proper handlers fixing the issue. I'll try to prepare PR on days if that will help.
@kasterlod Sounds nice! How is it going with the PR? Really need this as well! Or could you share some code in the meantime? Thanks 🙂
hello! Yeah, I'm during tests, I'll prepare PR on days 🙌 stay tuned!
@kasterlod hi, do you have any date for this fix, thanks
@flogy you tried with Xcode 12.5 beta 3 ?? according to some comments it is a bug that is fixed in the beta version
@pmella16 not sure about this, but probably no, as I never intentionally installed any beta version.