|
From: | Richard Zinn |
Subject: | Re: [Linphone-developers] Latest iPhone build not receiving calls when app is in background |
Date: | Tue, 17 Dec 2013 10:57:10 -0800 |
{
"aps": {
"badge": 1,
"alert": {
"loc-key": "IC_MSG",//for call or "IM_MSG" for text message
},
"sound": "ring.caf",
"call-id": "14086742964"
}
}
Cheers,As for the calls not reaching in, could you take a look at the logs? TCP should be reliable.The message format is not clearly specified in the documentation, but it is available in the code, in LinphoneAppDelegate.m, - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfoIt depends heavily on your phone setup.If you have lots of apps in the background, Linphone could be killed and its TCP socket goes with it.
In this case, if you're using sip.linphone.org, you'll still be able to receive calls and messages through Push notifications.
If you're using another sip provider, it is up to them to support push notifications.
On Mon, Dec 16, 2013 at 8:41 PM, Richard Zinn <address@hidden> wrote:Thanks Seamus. I've got it set to this now and the interesting thing now is that it only works some of the time. Do you know why it would only work part of the time? When it isn't working, doing a hard reboot of the phone seems to fix it. I've tried things like killing other SIP apps and Skype, and none of that seems to help.Also, does this app support getting push notifications in the background to wake up for incoming calls? If so, is there a spec for what the push notification message should look like?Thanks again.On Mon, Dec 16, 2013 at 5:02 AM, Seamus Cantillon <address@hidden> wrote:
Change the transport to TCP. This is a limitation in iOS. You'll only get notifications in the background when listening on TCP connections.
On Tue, Dec 3, 2013 at 3:28 PM, Richard Zinn <address@hidden> wrote:_______________________________________________I looked through the archives and this problem hasn't been reported since March of 2011. I can do SIP registration just fine, and even receive calls when the app is in the foreground, but when the app is backgrounded I don't get anything.Also the app outputs no log information when the app is backgrounded, so I'm unsure how to go about debugging this. Any thoughts on what to look at? The network settings are all the defaults, UDP, default port, etc.Thanks!RZ
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers
[Prev in Thread] | Current Thread | [Next in Thread] |