electron-fcm-demo icon indicating copy to clipboard operation
electron-fcm-demo copied to clipboard

Didnt't receive any Notification after push from postman

Open Amethystafyy282 opened this issue 4 years ago • 3 comments

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!

Amethystafyy282 avatar Oct 07 '20 08:10 Amethystafyy282

Same problem i'm sending the firebase notification directly from firebase console and I don't receive it on the client

ramonhoyo avatar Mar 24 '21 19:03 ramonhoyo

Same problem i'm sending the firebase notification directly from firebase console and I don't receive it on the client

@Amethystafyy282 @ramonhoyo
b3c661bdc64fe12438cc69ac9160ecc2 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"
  }

Devstarke avatar Jul 28 '21 10:07 Devstarke

Same problem i'm sending the firebase notification directly from firebase console and I don't receive it on the client

same here

makanSukros avatar Jun 07 '23 06:06 makanSukros