I have an NSURLSessionUploadTask running in background session. It is a POST with a small data and receives a large response from server. It works fine when the app is in foreground. However, as soon as I put the app in background, I get a call to the delegate with an error NSURLErrorDomain, error code: -997 "Lost connection to background service".
I have seen this error referenced in other posts in the context of a download task.
Has anyone seen this error with an upload task?
Does the fact that the upload body is much smaller than the response body have anything to do with this behavior?