-
Serge
mc_: when pusher push notification - where did the log file go? What will be the best way to check if kazoo actually send request to firebase? In kazoo folder I was trying to grep for pusher and it's only show me it in ecallmgr_erl_crash.dump
-
fink
Serge: you have to be in debug mode
-
fink
sup kazoo_maintenance syslog_level debug
-
Serge
fink it's already enabled
-
fink
also, iirc, there's a bug in the firebase pusher
-
fink
i'll check my notes, give me one sec
-
fink
been a while, but i'm 99% sure that MessageJObj in maybe_send_push_notification() needs to be kz_json:from_list([{<<"data">>, build_payload(JObj)},{<<"notification">>, kz_json:from_list([{<<"content_available">>, 'true'}])}]) for the push to get handled by firebase
-
Serge
fink does kazoo work with Firebase Cloud Messaging API (V1) or Cloud Messaging API (Legacy)?
-
fink
Serge: pretty sure it's the legacy api
-
Serge
fink Thank you! Will try to make it work
-
Serge
So, this bug is in latest 4.3 release?
-
Serge
fink: By any chance do you remember what value did you use for your AppId?
-
fink
idk if it's truly a bug, never looked into it too deeply, but it was the "fix" that i came up with to get pushes working with fcm...
-
fink
but we stopped using fcm because fcm doesn't (or didn't, not sure if it changed) support voip pushes to ios
-
fink
Serge: whatever id you choose for your app com.org.myvoipapp
-
Serge
fink: Is it "Publuc-facing name" com.org.myvoipapp from firebase project?
-
Serge
or "Project ID" from firebase project - 30390930xxxxxxx
-
fink
neither, should be your android application id or apple app id
-
Serge
Your apps -> App ID
-
Serge
1:123909302092:android:30e8e45f53b99cXXXX29e9 or Package name?
-
fink
package name, should follow a format like com.company.appname
-
Serge
Your apps -> Package name : com.org.whatever-app-name
-
Serge
got it, let me try that
-
Serge
thank you very much!
-
fink
yeah, no worries, like i said, been a minute since i've looked at fcm, so take all of this with a grain of salt lol, might be completely incorrect at this point
-
Serge
fink: Also, should I use "api_key" from google-services.json or from "Project Settings" -> "Cloud Messaging" -> "Cloud Messaging API (Legacy)" ?
-
fink
Serge: use the server key from the legacy api