Hi everyone it's my first expression on stack :). I've searched lot of topics and didn't find answer. Ok, here is my problem:
In my app I'm using NSURLSession - with background downloading. When I use cancelByProducingResumeData, everything goes fine, I saved resumeData in my sandbox directory, and resumed it easily with
[session downloadTaskWithResumeData: resumeData];
What is important I didn't invalidate session object. After app relaunch I'm creating new session and trying to resume downloading with same method downloadTaskWithResumeData:, obtaining message:
Invalid resume data for background download. Background downloads must use http or https and must download to an accessible file.
Any ideas? :)