Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wiweeyum

macrumors newbie
Original poster
May 22, 2009
12
0
I was curious if anyone that has iOS 4+ programming experience could clarify
something for me about the app background and suspension features that simulate multitasking. I've been digging around the iOS developer site reading
documentation, and most questions I had have been answered, but one specific in particular has not.

Theoretically, I want an app that runs in the background collecting data about
other processes running on the iPhone, and sends that data to an online server. I know that some sockets can be kept open when a program moves from the foreground such as audio, location, etc. One special exception is tasks that run for a finite amount of time such as a large download.

So, could it be possible to notify the data collecting app when the processes
have changed and wake it up long enough to send the data to the server, even
though it is in the background? Similar to the battery saving location features
that only send data to the backgrounded app when the users location has changed significantly. Could that keep it active enough to ensure that the app wouldn't be suspended and terminated when digging around for resources?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.