News for hackers. Stuff that matters.
Re:Handy Light: Tethering App Camouflaged as Flashlight by wallflower on Tuesday July 20, 2010 @10:58PM (#1534196)
Looks like iSSH is using beginBackgroundTaskWithExpirationHandler. So, yes, it's possible it would run for up to 10 min. in the background but my guess is the watchdog would kill the SOCKS app for taking up too much CPU time for a bg process and/or network access would be killed intermittently.

http://developer.apple.com/iphone/library/documentation/uiki...

"This method lets your application continue to run for a period of time after it transitions to the background."

Re:Handy Light: Tethering App Camouflaged as Flashlight by gojomo on Tuesday July 20, 2010 @11:24PM (#1534247)
What method(s) do you think Pandora is using to stay alive more than 10 minutes, intermittently fetching additional megabytes of music?
Re:Handy Light: Tethering App Camouflaged as Flashlight by sirn on Tuesday July 20, 2010 @11:48PM (#1534284)
Pandora is using Background Audio API, isn't it? If so, the app is able to stay alive as long as it still play music. Background Task API, on the other hand, has 10 minutes time limit.
Re:Handy Light: Tethering App Camouflaged as Flashlight by gojomo on Wednesday July 21, 2010 @12:08AM (#1534319)
That appears to fit the bill. From reading here...

http://developer.apple.com/iphone/library/documentation/iPho...

...it sounds like a background audio app could do arbitrary other things while remaining unsuspended, and receiving audio callbacks, as long as it also keeps playing audio. (I'm sure Apple would frown on such behavior, and ultimately thwart it, but it seems like the framework gives enough discretion to the app to do other things.)

Re:Handy Light: Tethering App Camouflaged as Flashlight by wallflower on Tuesday July 20, 2010 @11:55PM (#1534297)
http://cocoawithlove.com/2010/03/streaming-mp3aac-audio-agai...

My guess is Pandora has some fairly sophisticated server-side streaming that responds to ACK/FIN-type feedback from the iPhone client.