electron-fcm-demo
electron-fcm-demo copied to clipboard
Didnt't receive any Notification after push from postman
Hello, I'm currently building a small app on Electron and meet these issues.
The only thing I've changed in this package is to change new BrowserWindow in main.js for index.html to load renderer.js
mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true,
},
})
I've successfully received the token. After that, I've used Postman to push notification. My body is:
{
"to": "epZ76Xgma7U:APA91bEVrmU8McLmt5FRIvMYLI1JbuAxLzfFDEUo1bAvpjbSA6_VLkZq9599fl9_FrkuS6M1GE1kGxgdzbeiHZr9UtpUuc5_GNrdhGHJlZwxK8Kvx1qTkV_HnrmeTr2hpC0qsWMv1CQ5",
"data": {
"Nick": "Mario",
"Room": "PortugalVSDenmark",
"body": "Testing body"
},
"notification":{
"title":"Portugal vs. Denmark",
"body": "great match!"
}
}
ipcRenderer.on(NOTIFICATION_RECEIVED) didn't print out anything, IDK what else did I miss, thank u!
Same problem i'm sending the firebase notification directly from firebase console and I don't receive it on the client
Same problem i'm sending the firebase notification directly from firebase console and I don't receive it on the client
@Amethystafyy282 @ramonhoyo
You guys still have this problem? I just tried your request format in Postman and it worked instantly.
"devDependencies": {
"electron": "^1.8.2"
},
"dependencies": {
"electron-push-receiver": "^1.2.4"
}
Same problem i'm sending the firebase notification directly from firebase console and I don't receive it on the client
same here