I kick off several NSURLSessionUploadTask
s in a background NSURLSession
. I want to know for sure whether all tasks keep their original taskIdentifier
after I reconnect to this session in -application:handleEventsForBackgroundURLSession:completionHandler:
, because I need to know which task is for which request and taskIdentifier
is the only information I can use. I can not use URL to differentiate these POST requests because they are targeted to the same URL.
Does NSURLSessionTask keep taskIdentifier after session reconnection?
739 views Asked by an0 At
1
From the results of my own experiments, I can confirm that
NSURLSessionTask
keepstaskIdentifier
after session reconnection.