Re: Offline initiation of NSURLSession (was: What's the best way to run an NSURLProtocol session?)
Re: Offline initiation of NSURLSession (was: What's the best way to run an NSURLProtocol session?)
- Subject: Re: Offline initiation of NSURLSession (was: What's the best way to run an NSURLProtocol session?)
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 20 Oct 2014 10:42:31 +0100
On 20 Oct 2014, at 10:02, Rick Mann <email@hidden> wrote:
> So, if I start (can I even start) an NSURLSession when the device has no Internet access, will that session automatically start up when it does, without the app being launched (made active) again?
The session isn't really relevant here; creating a session has no impact on networking per se. What matters is the tasks within that session. And yes, you can start an upload task in a background session while the device is offline and it will then start transferring when the device comes back online. This should be possible on iOS 7 but, for best results, you want to use iOS 8.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden