Hi all,
I am using PJSIP library in my iOS application, and I could see that
whenever the messages and send to the application its getting delivered if
the application in in foreground. But in the case of background mode I
could see that the messages are not getting delivered in some iOS devices.
In my case I am getting messages in iPhone 4s,5s etc but not receiving the
messages in iPhone 6, 6 plus etc, in those devices the message call back
method on_pager are getting triggered when the application come to
foreground.
Any help on this issue is appreciated.
Thanks & Regards
Kannan Prasad
Any info on this is highly appreciated....
Thanks & Regards
Kannan Prasad
On Wed, May 18, 2016 at 4:31 PM, KANNAN PRASAD kannanprasad87@gmail.com
wrote:
Hi all,
I am using PJSIP library in my iOS application, and I could see that
whenever the messages and send to the application its getting delivered if
the application in in foreground. But in the case of background mode I
could see that the messages are not getting delivered in some iOS devices.
In my case I am getting messages in iPhone 4s,5s etc but not receiving the
messages in iPhone 6, 6 plus etc, in those devices the message call back
method on_pager are getting triggered when the application come to
foreground.
Any help on this issue is appreciated.
Thanks & Regards
Kannan Prasad
Is your app able to receive calls while in the background? It definitely should if configured correctly, and it works for my app.
The Getting-Started/iPhone wiki page has a section on what is required for the app to receive calls (and therefore other sip messages) while in the background.
http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone#UnabletoacceptincomingcallinbackgroundmodeiOS4 http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone#UnabletoacceptincomingcallinbackgroundmodeiOS4
In short, your app must connect over TCP (or TLS) instead of UDP, and your app’s UIBackgroundModes Info.plist key must contain the “voip” value.
Hope that helps,
Nick
On 25 May 2016, at 07:16, KANNAN PRASAD kannanprasad87@gmail.com wrote:
Any info on this is highly appreciated....
Thanks & Regards
Kannan Prasad
On Wed, May 18, 2016 at 4:31 PM, KANNAN PRASAD <kannanprasad87@gmail.com mailto:kannanprasad87@gmail.com> wrote:
Hi all,
I am using PJSIP library in my iOS application, and I could see that whenever the messages and send to the application its getting delivered if the application in in foreground. But in the case of background mode I could see that the messages are not getting delivered in some iOS devices. In my case I am getting messages in iPhone 4s,5s etc but not receiving the messages in iPhone 6, 6 plus etc, in those devices the message call back method on_pager are getting triggered when the application come to foreground.
Any help on this issue is appreciated.
Thanks & Regards
Kannan Prasad
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
@Nick, Thanks for your reply,
In my case I am getting messages in devices which are below iOS9. Other
devices have issue.
And regarding the points mentioned by you, I am not doing anything like
mentioned in Point 3. And also I am not seeing that error. So assuming it
is working in my case.
It will be great help if you can share some code which works in iOS9
devices.
Thanks & Regards
Kannan
Thanks & Regards
Kannan Prasad
On Wed, May 25, 2016 at 4:14 PM, Nick Dowell nick@nickdowell.com wrote:
Is your app able to receive calls while in the background? It definitely
should if configured correctly, and it works for my app.
The Getting-Started/iPhone wiki page has a section on what is required for
the app to receive calls (and therefore other sip messages) while in the
background.
In short, your app must connect over TCP (or TLS) instead of UDP, and your
app’s UIBackgroundModes Info.plist key must contain the “voip” value.
Hope that helps,
Nick
On 25 May 2016, at 07:16, KANNAN PRASAD kannanprasad87@gmail.com wrote:
Any info on this is highly appreciated....
Thanks & Regards
Kannan Prasad
On Wed, May 18, 2016 at 4:31 PM, KANNAN PRASAD kannanprasad87@gmail.com
wrote:
Hi all,
I am using PJSIP library in my iOS application, and I could see that
whenever the messages and send to the application its getting delivered if
the application in in foreground. But in the case of background mode I
could see that the messages are not getting delivered in some iOS devices.
In my case I am getting messages in iPhone 4s,5s etc but not receiving the
messages in iPhone 6, 6 plus etc, in those devices the message call back
method on_pager are getting triggered when the application come to
foreground.
Any help on this issue is appreciated.
Thanks & Regards
Kannan Prasad
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org