Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does NSURLSessionTask keep taskIdentifier after session reconnection?

I kick off several NSURLSessionUploadTasks 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.

like image 703
an0 Avatar asked Oct 19 '25 18:10

an0


1 Answers

From the results of my own experiments, I can confirm that NSURLSessionTask keeps taskIdentifier after session reconnection.

like image 92
an0 Avatar answered Oct 22 '25 07:10

an0