Question : OS4 MultiTask Programming: How to get network while in Background?

I am very new to OS 4.
I am using Xcode 3.2 and I am working on a chatting system using xmpp.
I want to get the network data even when my app is in the background,
so that any people contact the user, the user will know it.

Right now, if my app is in the background,
it won't get any data from the server.

How can I implement this feature?
Any hint or link?
Or what keyword can I use to search?


Answer : OS4 MultiTask Programming: How to get network while in Background?

I see only generic articles about iOS 4 SDK. :( Like that:
iPhone OS 4.0: Multitasking and App Switching

Multitasking on Apple's iPhone 4: How Does It Work?

I think, it makes sense to begin from it:
Understanding iOS 4 Backgrounding and Delegate Messaging

Here is a sample (I've not opened yet):

More about the subject:

How I understand the story, now the application can be in two modes, the new one is a so called `"suspended". Some services used in the application are multithreaded (location, audio, voip).  If my app is known as the "multi-threaded" and uses one of this services it will receive the notifications.

So, I think, it is not a real multi-tasking.
iPhone multitasking

I can be absolutely wrong, I've not worked with the multi-tasking for iOS4.
I did hear and see that AVAudioPlayer plays a song when it is in the background (I'm closer to the sound area).

If you work with it, check iOS Reference Library.

(I do not see anything about an opening URl there, for example).

You will need to these UIBackgroundModes to the .plist file.
Random Solutions  
programming4us programming4us