I am trying to use XMPPFramework to show background notifications in the “10 minute window” before the application is terminated. It appears that all of the network requests are being queued while it is in the background, and xmppStream:didReceiveMessage: isn’t being called until the app is brought back to the foreground.
I have noticed apps like Verbs support this behavior. They are clearly not a VoIP app, so I am curious as to how they accomplished this behavior.
In case anyone else has this issue, you can solve it by adding this code to your App Delegate. My full source code is here if you want to check it out: OTRAppDelegate.m. The other relevant code is in receiveMessage: of OTRBuddy.m.