s1deburn
11/21/2022, 2:41 PMchris-schmitz
11/21/2022, 3:09 PM{
"ErrorDetail": "",
"Mimetype": "application/json",
"Statuscode": "200 OK",
"Filecontent": "{\"multicast_id\":8596430052349615309,\"success\":1,\"failure\":0,\"canonical_ids\":0,\"results\":[{\"message_id\":\"3ea2ac14-002f-4221-92a1-ab2a308de87f\"}]}",
"Responseheader": {
"Cache-Control": "private, max-age=0",
"Content-Security-Policy": "frame-ancestors 'self'",
"Alt-Svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"",
"Status_Code": 200,
"Http_Version": "HTTP/1.1",
"X-Frame-Options": "SAMEORIGIN",
"Explanation": "OK",
"Connection": "close",
"Date": "Mon, 21 Nov 2022 15:07:39 GMT",
"Transfer-Encoding": "chunked",
"X-XSS-Protection": "1; mode=block",
"Expires": "Mon, 21 Nov 2022 15:07:39 GMT",
"Server": "GSE",
"Content-Type": "application/json; charset=UTF-8",
"X-Content-Type-Options": "nosniff"
},
"Text": true,
"Charset": "UTF-8",
"Header": "HTTP/1.1 200 OK\r\nContent-Type: application/json; charset=UTF-8\r\nDate: Mon, 21 Nov 2022 15:07:39 GMT\r\nExpires: Mon, 21 Nov 2022 15:07:39 GMT\r\nCache-Control: private, max-age=0\r\nX-Content-Type-Options: nosniff\r\nX-Frame-Options: SAMEORIGIN\r\nContent-Security-Policy: frame-ancestors 'self'\r\nX-XSS-Protection: 1; mode=block\r\nServer: GSE\r\nAlt-Svc: h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"\r\nConnection: close\r\nTransfer-Encoding: chunked\r\n"
}
s1deburn
11/21/2022, 3:51 PMs1deburn
11/21/2022, 3:53 PMs1deburn
11/21/2022, 3:56 PMchris-schmitz
11/21/2022, 4:07 PMconsole.log()
the response from the http call that CF makes to Google.
I thought that with Firebase Cloud Messaging, the backend server (CF) sends a request to Google and Google then in turns sends a push message to the registered client. It's not the CF server that hand's back the response to the client. Or am I misunderstanding what you said?
Maybe my approach is all wrong, ultimately I need a way to send a msg to one specific client without the other clients seeing (or even receiving) the message.
I wanted to go with web sockets, but, due to the setup my client is using with his servers, this proves to be a major pain, too. 😞s1deburn
11/21/2022, 4:24 PMMichael Schmidt
11/21/2022, 4:32 PMs1deburn
11/21/2022, 5:07 PMagentk
11/22/2022, 1:40 AMmessage_id
back then your communication between CF/Lucee and Firebase was ok and you should expect the message to be delivered.
So, I’d look into the client side of things on why the message is not being received or displayed. I’ve never done this with JS but only in native apps and Flutter, but from experience any issue I had was almost every time one of:
• Somehow mismatching or missing device token from Firebase
• Data format being passed into the FCM/GC endpoint and what the other side expect.chris-schmitz
11/23/2022, 1:28 PMchris-schmitz
11/23/2022, 1:29 PMchris-schmitz
11/23/2022, 1:32 PMs1deburn
11/23/2022, 2:27 PMchris-schmitz
11/24/2022, 8:29 AM