AFNetworking + big download files + resume downloads
I need to download files > 500 Mo with AFNetworking. Sometimes, the time to download them is > 10 minutes and if the app is in background, the download can't be complete. So I want to try partial downloads. I found a lot of links and this seems to be possible with pause() and resume() methods on AFHTTPRequestOperation. Actually, I did: [self.downloadOperation setShouldExecuteAsBackgroundTaskWithExpirationHandler:^{ // Clean up anything that needs to be handled if the request times out [self.downloadOperation pauseDownload]; }]; DownloadOperation is a subclass of AFHTTPRequestOperation