<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Vasilios,<div class=""><br class=""></div><div class="">If you use â€˜linphone' as app_type, it will send out a JSON like in your pastebin. For the latest google messaging api this format is clearly not a supported format and it should look more like your test push notification.</div><div class=""><br class=""></div><div class="">The format for the linphone app_type is taken from their wiki and I guess can only be used with <a href="https://fcm.googleapis.com/fcm/send" class="">https://fcm.googleapis.com/fcm/send</a>.</div><div class=""><br class=""></div><div class="">Is your client based on linphone?</div><div class=""><br class=""></div><div class="">If you just want to send a JSON like the one from your test push notification, you can fairly easy do this by adding a custom application. </div><div class=""><br class=""></div><div class="">A skeleton app for this is already given in the config dir (myapp.py). If you just want use Firebase, you can need to customise the FirebasePayload and return a dict which contains the required structure. I made this gist for your app and can can further customise it if you want: </div><div class=""><br class=""></div><div class=""><a href="https://gist.github.com/tijmenNL/73ca3c3bc8275540e8500b9e3ab35ebc" class="">https://gist.github.com/tijmenNL/73ca3c3bc8275540e8500b9e3ab35ebc</a></div><div class=""><br class=""></div><div class="">You can place this file in /etc/config/applications and change your config to have app_type = customapp</div><div class=""><br class=""></div><div class="">Hope this helps you.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class=""><br class=""></div><div class="">Tijmen de Mes</div><div class="">--</div><div class="">AG Projects</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">Op 27 jan. 2023, om 18:33 heeft Vasilios Tzanoudakis <<a href="mailto:vtzanoudakis@gmail.com" class="">vtzanoudakis@gmail.com</a>> het volgende geschreven:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">Dear <span style="white-space: pre-wrap;" class="">Tijmen de Mes,</span></div><div dir="ltr" class=""><font class=""><span style="white-space:pre-wrap" class=""><br class=""></span></font></div><div dir="ltr" class=""><font class=""><span style="white-space:pre-wrap" class="">Thank you for your previous response.<br class=""></span></font><div class=""><br class=""></div><div class="">Following our previous conversation here --> <a href="https://lists.ag-projects.com/pipermail/sipbeyondvoip/2023-January/003571.html" class="">https://lists.ag-projects.com/pipermail/sipbeyondvoip/2023-January/003571.html</a></div><div class=""><br class=""></div><div class="">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 --> <a href="https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send" class="">https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send</a>) and not this one --> <a href="https://fcm.googleapis.com/fcm/send" class="">https://fcm.googleapis.com/fcm/send</a></div><div class=""><br class=""></div><div class="">As I can see in applications.ini both urls seems to be supported.</div><div class=""><br class=""></div><div class="">Our applications.ini config is this :</div><div class="">=======================================================</div><div class="">[com.voiceland.voiceland]<br class="">app_id = com.voiceland.voiceland<br class="">app_type = linphone<br class="">app_platform = firebase<br class="">firebase_authorization_file = key.json<br class="">firebase_push_url = <a href="https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send" class="">https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send</a><br class=""></div><div class=""><div class="">=======================================================</div><br class="gmail-Apple-interchange-newline"></div><div class="">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. </div><div class=""><br class=""></div><div class="">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.<br class="">Invalid JSON payload received. Unknown name "time_to_live": Cannot find field.<br class="">Invalid JSON payload received. Unknown name "priority": Cannot find field.<br class="">Invalid JSON payload received. Unknown name "data": Cannot find field.<br class=""></div><div class=""><br class=""></div><div class="">full debug logs here --> <a href="https://pastebin.com/tsqZifBW" class="">https://pastebin.com/tsqZifBW</a></div><div class=""><br class=""></div><div class="">I am using the latest sylkpushserver version (commit: c84f4347285f7480de2f6b1d1aaf1dd9b817e263)</div><div class=""><br class=""></div><div class="">from our side we have verified that push service from our mobile app is working using postman url --> <a href="https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send" class="">https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send</a> and this json data on body --> <a href="https://pastebin.com/pP9Rtyyn" class="">https://pastebin.com/pP9Rtyyn</a></div><div class=""><br class=""></div><div class="">Thank you in advance for your help on this.<br class=""></div><div class=""><br class=""></div><div class="">Best Regards</div><div class="">Vasilios Tzanoudakis</div></div></div>
_______________________________________________<br class="">SIPBeyondVoIP mailing list<br class=""><a href="mailto:SIPBeyondVoIP@lists.ag-projects.com" class="">SIPBeyondVoIP@lists.ag-projects.com</a><br class="">https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip<br class=""></div></blockquote></div><br class=""></div></body></html>