I have a situation in which when the device receives a push notification, I would send a NSURLSession
combined with a NSURLConnection
. I have a couple
If you use background configurations with NSURLSession the delegates are getting called on success/failure when your app is Active or in the background. The task you created are handed over to a demon of the OS and your app is being waken up or even started (if it killed by iOS) using
`application:handleEventsForBackgroundURLSession:completionHandler`:
And when all the tasks completed your session delegate would be called with
URLSessionDidFinishEventsForBackgroundURLSession:
More details on background session are here
You can also get apple sample code here and look for "Simple Background Transfer"