ios - Resume data is always nil when invoking cancelByProducingResumeData: -
When I end the application, trying to access the I resume value from When canceling This can start again later when the app launches as the following: resumeData of the downloading file I am I tried to call the method in
willEnterBackground and
willpower in the
appDelegate .
download session will automatically close it happens.
, resuming data: , it is again The data will start and then it will call
URLSessionTask-didCompleteWithError . There we found out how the app is stopped or not, and we can store
resumeData without canceling the download.
self.downloadTask = [self.session downloadTaskWithResumeData: objFile resumeData]; [Self. Download Task Resume]; // Here objFile is a stored object in a core data
Comments
Post a Comment