I have created a download task. I have cancelled the task in my application with cancelByProducingResumeData
and saved to disk. When user relaunch application and click on resume button I have again started the download task by self.downloadTask = [session downloadTaskWithResumeData:resumableData];
. But this gives error.
Invalid resume data for background download. Background downloads must use http or https and must download to an accessible file
EDIT: I have verified the tmp
directory on simulator contains the downloadData but not able to access that.