views:

84

answers:

2

Is it possible to download a file while the app is in background in iPhone 4?

A: 

Yes, it is.

You can do it yourself, or there's an (experimental) branch of ASIHTTPRequest that deals with some of it for you:

http://github.com/pokeb/asi-http-request/commits/backgroundtask

JosephH
+1 to counter the anonymous down-vote.
hgpc
+1  A: 

Under iOS 4.x, you can use request some background time using UIApplication beginBackgroundTaskWithExpirationHandler: and perhaps continue a file download for a limited period of time.

See Apple's document on "multitasking" background execution for details.

hotpaw2