[SIP Beyond VoIP] push failed with code 400: Bad Request Invalid JSON payload received
Vasilios Tzanoudakis
vtzanoudakis at gmail.com
Fri Jan 27 18:33:13 CET 2023
Dear Tijmen de Mes,
Thank you for your previous response.
Following our previous conversation here -->
https://lists.ag-projects.com/pipermail/sipbeyondvoip/2023-January/003571.html
I have verified with my mobile dev team that for our mobile app to receive
push notification we should send the push notification using "only" using
the latest google messaging api. (push url -->
https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send) and not
this one --> https://fcm.googleapis.com/fcm/send
As I can see in applications.ini both urls seems to be supported.
Our applications.ini config is this :
=======================================================
[com.voiceland.voiceland]
app_id = com.voiceland.voiceland
app_type = linphone
app_platform = firebase
firebase_authorization_file = key.json
firebase_push_url =
https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send
=======================================================
but when we are sending out a push notification request it seems to be a
problem from firebase to accept the request from the sylkpushserver.
2023-01-27 17:18:30 ERROR outgoing Firebase response for
incoming_session-com.voiceland.voiceland-B2B.252.7430759.1674839908, push
failed with code 400: Bad Request Invalid JSON payload received. Unknown
name "to": Cannot find field.
Invalid JSON payload received. Unknown name "time_to_live": Cannot find
field.
Invalid JSON payload received. Unknown name "priority": Cannot find field.
Invalid JSON payload received. Unknown name "data": Cannot find field.
full debug logs here --> https://pastebin.com/tsqZifBW
I am using the latest sylkpushserver version
(commit: c84f4347285f7480de2f6b1d1aaf1dd9b817e263)
from our side we have verified that push service from our mobile app is
working using postman url -->
https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send and this
json data on body --> https://pastebin.com/pP9Rtyyn
Thank you in advance for your help on this.
Best Regards
Vasilios Tzanoudakis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20230127/73be4052/attachment.htm>
More information about the SIPBeyondVoIP
mailing list