linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Notifications doesnt arrive on iOS after app g


From: German Cancio
Subject: Re: [Linphone-developers] Notifications doesnt arrive on iOS after app goes to Background
Date: Sun, 6 Dec 2020 11:03:27 +0000

Do you get CallKit launched? Does the client REGISTER with the server, does 
then the server send an INVITE to the client? Have you checked that the Call-ID 
provided in the APNS payload is exactly the same as the one the INVITE? In the 
log lines you provided, the Call-ID is empty. Also, loc-key should be IC_MSG 
not IM_MSG. 

Below is an example of what you should be sending and then receiving on the 
client:

2020-10-16 17:25:03:006 [CERNphone/ios] MESSAGE (honeAppDelegate.m:553 ) 
[PushKit] Notification [0x2803a9080] received with payload : {
    aps =     {
        "call-id" = “deadbeef-dead-beef-deadbeef";
        "loc-args" =         (
            ""
        );
        "loc-key" = "IC_MSG";
        "send-time" = "2020-12-06 12:00:00";
        sound = "";
        uuid = "<urn:uuid: deadbeef-dead-005d-9a77-9462cec3ba3f>";
    };
    "display-name" = "";
    "from-uri" = "";
    "pn_ttl" = 50;
}

So your forthcoming INVITE should have as Call-ID "deadbeef-dead-beef-deadbeef” 
in this example.

Germán


> On 6 Dec 2020, at 10:04, yuvraj.narula@diseo.com wrote:
> 
> We managed to get the notifications however call doenst get established. It 
> just open the app.
> 
> When the app at background, notifications arrives but call doesnt get 
> established.
> 
> Any suggestions.
> 
> ios developer wrote on 5. Dec 2020 23:45 (GMT +05:30):
> 
>> Hi ,
>> I am also facing same issue , downloaded the latest code form GitHub and
>> compile it successfully on real device with add certificate xcode
>> automatic
>> option.
>> Still it not working in background or terminated mode
>> 
>> 
>> On Fri, Dec 4, 2020 at 12:47 AM German Cancio
>> <German.Cancio.Melia@cern.ch>
>> wrote:
>> 
>>> Juvi,
>>> 
>>> we don’t use flexisip at our site for issuing PN’s so I can’t tell
>>> whether
>>> there is something wrong from your logs. Are you sure
>>> api.development.push.apple.com is the right APNS server to use (see also
>>> this
>>> link
>>> <https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns/>)?
>>> Another potential problem (we ran into) is to use a wrong VoIP
>>> certificate
>>> - and APNS doesn’t provide any negative feedback...
>>> 
>>> Germán
>>> 
>>> 
>>> On 3 Dec 2020, at 19:17, yuvraj.narula@diseo.com wrote:
>>> 
>>> Hi German
>>> 
>>> See this is the payload data we get from server
>>> 
>>> 2020-12-03 11:51:11:663 flexisip-debug-AppleClient[0x1faff00][1]: sending
>>> PNR 0x1fafd80:
>>> :method = POST
>>> :scheme = https
>>> :path =
>>> /3/device/98E51CA5F61AE7F42C39778296D5073C38073BA02C7BDE542D72621F1D11A755
>>> host = api.development.push.apple.com
>>> apns-expiration = 0
>>> apns-topic = com.diseo.circles.voip
>>> 
>>> {
>>> "aps": {
>>> "sound": "",
>>> "loc-key": "IM_MSG",
>>> "loc-args": ["Pusher"],
>>> "call-id": "",
>>> "uuid": "",
>>> "send-time": "2020-12-03 11:51:11"
>>> },
>>> "from-uri": "sip:toto@sip.linphone.org",
>>> "display-name": "Pusher",
>>> "pn_ttl": 2592000
>>> }
>>> 2020-12-03 11:51:11:829 flexisip-debug-AppleClient[0x1faff00][1]:
>>> receiving HTTP2 header [:status = 200]
>>> 2020-12-03 11:51:11:829 flexisip-debug-AppleClient[0x1faff00][1]: PNR
>>> 0x1fafd80 succeeded
>>> 2020-12-03 11:51:11:829 flexisip-debug-AppleClient[0x1faff00][1]:
>>> receiving HTTP2 header [apns-id = C802569E-C31C-AA96-49E3-C6D6A1F18EC2]
>>> 2020-12-03 11:51:11:829 flexisip-debug-AppleClient[0x1faff00][1]: stream
>>> closed with error code [0]
>>> 2020-12-03 11:51:11:829 flexisip-debug-AppleClient[0x1faff00][1]: end of
>>> PNR 0x1fafd80
>>> 1 push notification(s) sent, 1 successfully and 0 failed.
>>> job is done, thanks for using ./flexisip_pusher. Bye!
>>> 
>>> 
>>> Still we do not receive push on iPhone
>>> 
>>> Any suggestions.
>>> 
>>> Regards
>>> 
>>> Yuvi
>>> 
>>> 
>>> German Cancio wrote on 02.12.2020 14:03 (GMT +05:30):
>>> 
>>> Yuvi,
>>> 
>>> unfortunately there might be many reasons why push notifications are not
>>> received and you need to dive into each of the components to understand
>>> where the problem comes from. You may have problems with your server-side
>>> setup (are you using flexisip?) for issuing the push, or with your VoIP
>>> certificates used. Then, you may want to check whether VoIP push
>>> notification are presented to your device at all.
>>> 
>>> Germán
>>> 
>>> 
>>> On 2 Dec 2020, at 08:57, yuvraj.narula@diseo.comwrote:
>>> 
>>> Hi German
>>> 
>>> We have integrated all however still not receiving the push.
>>> 
>>> Regards
>>> 
>>> yuvi
>>> 
>>> 
>>> German Cancio wrote on 01.12.2020 13:41 (GMT +05:30):
>>> 
>>> Yuvi,
>>> 
>>> it seems you haven’t configured push notifications - have you read
>>> 
>>> 
>>> https://wiki.linphone.org/xwiki/wiki/public/view/Lib/Getting%20started/iOS/#HGuidelinesforintegratingwithpushnotifications
>>> ?
>>> 
>>> cheers, Germán
>>> 
>>> 
>>> On 1 Dec 2020, at 08:50, yuvraj.narula@diseo.com wrote:
>>> 
>>> Hi Team
>>> 
>>> We have installed Linphone iOS sdk in our app.
>>> 
>>> As soon as app goes to background , upto 1 minute notification arrives
>>> for
>>> the call but not after that.
>>> 
>>> I think app goes to Inactive mode, but what can we do that notification
>>> should arrive even if the app is killed or on inactive mode?
>>> 
>>> Regards
>>> 
>>> Yuvi
>>> _______________________________________________
>>> Linphone-developers mailing list
>>> Linphone-developers@nongnu.org
>>> https://lists.nongnu.org/mailman/listinfo/linphone-developers
>>> 
>>> _______________________________________________
>>> Linphone-developers mailing list
>>> Linphone-developers@nongnu.org
>>> https://lists.nongnu.org/mailman/listinfo/linphone-developers
>>> 
>>> _______________________________________________
>>> Linphone-developers mailing list
>>> Linphone-developers@nongnu.org
>>> https://lists.nongnu.org/mailman/listinfo/linphone-developers
>>> 
>>> 
>>> _______________________________________________
>>> Linphone-developers mailing list
>>> Linphone-developers@nongnu.org
>>> https://lists.nongnu.org/mailman/listinfo/linphone-developers
>>> 
>> _______________________________________________
>> Linphone-developers mailing list
>> Linphone-developers@nongnu.org
>> https://lists.nongnu.org/mailman/listinfo/linphone-developers
>> 
> <unknown.txt>_______________________________________________
> Linphone-developers mailing list
> Linphone-developers@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/linphone-developers


reply via email to

[Prev in Thread] Current Thread [Next in Thread]