Hello,
I have a flexisip server setup, with the following version:
./flexisip version: 2.0.0
sofia-sip version 1.13.44bc
For both Android and Apple, I can use flexisip_push to get a successful response:
Android:
/opt/belledonne-communications/bin/flexisip_pusher --pntype firebase --appid 1:42xxx --key AAAAYwpDNsU:APxxx --pntok dBbxhWe7Qtxxx:APA9xxx. --debug
2020-10-07 11:03:11:186 flexisip-debug-Push notification https post body is {"to":"dBbxhWe7QtiMMOmUKLYnJ7:APxxx", "time_to_live": 2419200, "priority":"high", "data":{"uuid":"", "form-uri":"
sip:toto@sip.linphone.org", "display-name":"+33681741738", "call-id":"fb14b5fe-xx", "sip-from":"+33681741738", "loc-key":"", "loc-args":"+33681741738", "send-time":"2020-10-07 17:03:11"}}
2020-10-07 11:03:11:186 flexisip-debug-PNR 0x196de40 https post header is POST /fcm/send HTTP/1.1
Host:
fcm.googleapis.comContent-Type:application/json
Authorization:key=AAAAYwpDNxxx
I get response
2020-10-07 11:03:11:290 flexisip-debug-PushNotificationClient firebase PNR 0x196de40 read 786 data:
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Date: Wed, 07 Oct 2020 17:03:11 GMT
Expires: Wed, 07 Oct 2020 17:03:11 GMT
and the status:
8f
{"multicast_id":4702045041622659886,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1602090191257178%d023a5e2f9fd7ecd"}]}
1 push notification(s) sent, 1 successfully and 0 failed.
job is done, thanks for using /opt/belledonne-communications/bin/flexisip_pusher. Bye!
The problem is the client (custom PJsip) is not receiving the notification. From <
https://www.apnstester.com/fcm/>. I send to the client and it was received. With a non-linphone client, is there any way to see the reception of the notification? Alternatively, is the issue client related as Android is giving a good "200 OK" to the push notification?