-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IOS Question] uploadTaskWithStreamedRequest #155
Comments
So after testing, it seems like |
From what I see In
In
|
Interesting, but what about this?
I can't tell if app exits is the same as suspension in this case or not. I know for sure that data tasks will not even start with a background session. |
Trying to figure out why some uploads fail when they are just a bit large (e.g., 20-25mb). Didn't find the answer, but the following docs brought my attention:
https://developer.apple.com/documentation/foundation/nsurlsession/1410934-uploadtaskwithstreamedrequest?language=objc
Current code: https://github.com/Vydia/react-native-background-upload/blob/master/ios/VydiaRNFileUploader.m#L200
However, the current code does not implement the above, but rather set the body on the request. I believe it works nevertheless, but I wonder if it is just luck.
The code docs also say:
So, I'm wondering if it should be using uploadTaskWithRequest instead. Or even better, implement the
URLSession:task:needNewBodyStream:
delegate.Thoughts? My Objective-C knowledge is limited so I might be quite wrong about this.
The text was updated successfully, but these errors were encountered: