electron-push-receiver
A module to bring Web Push support to Electron allowing it to receive notifications from Firebase Cloud Messaging (FCM).
Why and how ?
See this blog post.
Install
npm i -S electron-push-receiver
Usage
- In
main.js
/ in main process :
const setup: setupPushReceiver = ; // Call it before 'did-finish-load' with mainWindow a reference to your window;
- In renderer process :
;; // Listen for service successfully startedipcRenderer