Post

Replies

Boosts

Views

Created

DidCompleteWithError delegate called before app forceQuit instead of after relunch
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?
0
0
645
Nov ’21
DidCompleteWithError delegate called before app forceQuit instead of after relunch
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?
Replies
0
Boosts
0
Views
645
Activity
Nov ’21