POST request error when app goes to background

180 Views Asked by At

Is it expected behavior for a POST request in URLSessionDataTask to have an error NSURLErrorNetworkConnectionLost -1005 when the app goest to the background during the request?

For example, during a POST web service request, the user taps the home button, waits for 5 seconds, comes back to the app and then the request returns with an error NSURLErrorNetworkConnectionLost.

0

There are 0 best solutions below