NSURLSession with invalid resume data

前端 未结 2 1739
不知归路
不知归路 2021-01-01 04:15

I use [NSURLSessionConfiguration defaultSessionConfiguration] to config my url session.

I pause a task by calling cancelByProducingResumeData:

2条回答
  •  一个人的身影
    2021-01-01 04:53

    Anytime you relaunch your app, everything under tmp will be cleaned, I was experiencing the same thing, even though I tried to copy all the *.tmp, and paste back whenever app relaunches, it'll throw an error

    My advice is that, you check if the *.tmp file is accessible, redownload from start if not

提交回复
热议问题