ios - NSURLSession : getting null resumedata when downloading is running and in between that internet connection will change as ON to OFF mode -


i using nsurlsession downloading zip file server. following task working perfectly

  • pause , resume downloading
  • get progress of downloading
  • get notification of when internet active or not active

but there major problem

while downloading going on @ time if internet connection gone time notification there can stored nsdata again assign when internet connection come. in internet connective method null data from

[downloadtask cancelbyproducingresumedata:^(nsdata * resumedata){ nslog(@"resume data %@",resumedata);  // getting **"null"**  } 

please help!


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -