I'm currently developing a podcast application which will run only on iOS 7, and it has a feature that allows to synchronize and download recent episodes in background mode.
So it's clear with Synchronization, I implemented the
application:performFetchWithCompletionHandler
method and call the sync method in it, and when the sync is done I call completionHandler with UIBackgroundFetchResultNewData
, or if it fails I call UIBackgroundFetchResultFailed
. But when I run the download manager to start downloading all new episodes it can takes very long, depends on the network quality and file sizes, and the background mode just freezes in some point and suspend the recent download.
How the background downloading should be designed correctly?
Or maybe some link to tutorial which describes properly about the downloading files on background.