Re: Associating context with background NSURLSession tasks
Re: Associating context with background NSURLSession tasks
- Subject: Re: Associating context with background NSURLSession tasks
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Wed, 11 Feb 2015 14:47:11 +0000
On 11 Feb 2015, at 14:24, Greg Robbins <email@hidden> wrote:
> Quinn, is the presence of the obscure NSURLProtocol request properties the reason this repeatedly-requested and quite obviously needed per-task and per-session app data support hasn't been added to NSURLSession?
First, this is really two questions, so let's break them up:
o per-task -- The presence of custom protocol properties is the reason /I/ haven't asked for any extensions along those lines.
o per-session -- Background sessions already support a persistent, client-controlled identifier. For in-memory sessions, I've not seen a lot of requests for such an identifier.
> Are the NSURLProtocol request properties in any sense officially supported and guaranteed to survive app and session restarts, or are they just the best hack you've found around this negligence of the NSURLSession API design?
I would consider them to be supported API. "Obscure" is not the same as "hackish".
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