views:

16

answers:

0

Hello, I'm a beginner at iPhone developing.

Though I've read lots of guides and users' notes I have no exact and accessible answer to the following question: "Are there any ways to execute internal tasks (for example to listen for server activity) in background in iOS 4.x?"

I know that only 3 kinds of tasks are permitted (audio, voip and location). But in according to Apple documentation we should set only keys in app.plist file. But what will happen if we set one of those keys and try to do anything else?

To test background execution I set one of 'background keys' and try to launch a separate thread within my applicationDidEnterBackground: method. It does nothing but writing a log. As the main thread it also gets suspended state. What's the reason for this? Who does reject my app? (The purpose is not hacking but understanding the essence of the matter.)

I hope someone knows the details of this problem. If the subject I've described is obvious one then please give me some links for the information.

Thank you in advance, Paul