I am using [NSURLSessionConfiguration defaultSessionConfiguration] to configure url session.
I pause the task by calling cancelByProducingResumeData: to create the resume data and save it to disk. When I want to restart the task, I call downloadTaskWithResumeData: It works well until I restart the application.
I will kill the application after pausing the job. Then I started the application again and called downloadTaskWithResumeData , I found that the renewal data is invalid.
I parse the summary data in an NSDictionary and get an NSURLSessionResumeInfoLocalPath which
"/private/var/mobile/Containers/Data/Application/5DD071C3-9D5E-4D76-9F74-57B6C92445CB/tmp/CFNetworkDownload_IUI6kg.tmp" . I am trying to access this file but it does not exist.
My question is: how can I continue downloading using renewable data after restarting my application.
Thanks.
source share