2 ms·
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 w
by wallflower 16y ago
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/uikit/reference/UIApplication_Class/Reference/Reference.html 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."
- gojomo 16y agoWhat method(s) do you think Pandora is using to stay alive more than 10 minutes, intermittently fetching additional megabytes of music?
- sirn 16y agoPandora 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.
- gojomo 16y agoThat appears to fit the bill. From reading here... http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html#//apple_ref/doc/uid/TP40007072-CH5-SW14 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.)
- wallflower 16y agohttp://cocoawithlove.com/2010/03/streaming-mp3aac-audio-again.html 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.