Reputation: 280
Is there any way to handle network events on-the-fly in iOS 4.2.1 when app in background?
To be more specific, here are two examples:
Use of setKeepAliveTimeout:handler:
seems not possible, since minimum delay is 600 seconds (10 minutes).
Upvotes: 1
Views: 397
Reputation: 69499
Well you can keep a socket open when you add the Required background modes
and add voip
to you info.plist.
This will allow you to catch any incoming calls, the just notify the user with a UILocalNotification
.
You can't really do it for IM system, since they do not fall in the Voip category.
Upvotes: 2