Lion Lion - 4 months ago 32
iOS Question

iOS Start to send data to server from background when internet becomes available

Can we start to send data when internet is available while app is in background state by using

NSUrlsessionUploadTask
or anything else?

Answer

There are some ways(based on internet survey) that can achieve this kind of stuff(by background fetch or NSURLSessionDownloadTask or NSURLSessionUploadTask) but not work smoothly, so we can say that it is not possible to get rechability change notification in background and start some task depends on it.

So, It is not possible to achieve this stuff exactly.