CydeSwype / electron-fcm-demo

Example app demonstrating Firebase Cloud Messaging push messages to Electron desktop app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Push Notification not recieved

rahulbm opened this issue · comments

I am able to run the code and get the token.

From Postman I tried to send the Push Notification to my electron-fcm-demo app but it is never received.

I have updated my senderId in renderer.js
const senderId = '65034025214'

Also I have copied and pasted both Server key and token in my Postman collection.

I received below response in Postman but notification did not came neither it invoked ipcRenderer.on(NOTIFICATION_RECEIVED, ... callback
{
"multicast_id": 8657953399174245561,
"success": 1,
"failure": 0,
"canonical_ids": 0,
"results": [
{
"message_id": "0:1527497769914745%7031b2e6f9fd7ecd"
}
]
}

I am suspecting whether my Network blocking incoming notification.

There was problem in setting up my project at Firebase console. I used option "Add Firebase to your web app" and it works.