BackGround Downloading speed in iOS -
is there speed difference in download speed when app in background.i using nsurlsession download set of files in background.also can restrict downloads of items 1 because when checked sample,3 files getting downloaded.any ideas?
yes, there may speed difference background transfers. it's difficult know speed difference be. once app in background, nsurlsession background daemon manage download maximise efficiency, depending on several factors, including other data transfers, network state (wi-fi or cellular, say) , available battery life of device.
if watch wwdc 2013 session 705 video, "what's new in foundation networking", you'll find covered briefly around 33 minutes in, in "background transfers" section. (that's section worth watching if you're interested in background transfers. includes full worked example of app background download.)
foreground transfers faster (as keeping app in foreground, you're hinting ios associated network transfers more important else might going on.)
to restrict number of concurrent transfers, want httpmaximumconnectionsperhost property of nsurlsessionconfiguration. there's example of setting in ray wenderlich nsurlsession tutorial.
Comments
Post a Comment