Posts

Post not yet marked as solved
0 Replies
554 Views
hi so i am writing a networkManager class for downloading huge files from internet (more than 1.5GB) i am using URLSessionDownloadTask to do so but when user terminate the app urlsession didcompletewitherror calls before app termination and when app relunches it wont call again so i dont have access to resume data but i can confirm from folders than multiple data is availbile in tmp folder named CFD... what should i do ? how can i access resume data after app relunch let resumeData = (err as NSError).userInfo[NSURLSessionDownloadTaskResumeData] as Data i use this code to get resume data just before app termination . can i simply try to write this data to file in that little time before app termination?
Posted Last updated
.