Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FCM/GCM for electron APP

I have been using FCM/GCM to send notifications to Chrome App, Chrome Extension, Android APP.

But, may I know how can I send notifications to an electron APP from FCM/GCM. I browsed through a lot of websites but did not find anything related to it.

PS: I don't worry about how the notifications are displayed. I just want the notification payload to be received by the electron app.

Thanks in advance.

like image 685
Vignesh T.V. Avatar asked Aug 30 '16 14:08

Vignesh T.V.


1 Answers

There's nothing available out of the box with Electron but there is a Node package available here: https://www.npmjs.com/package/electron-push-receiver

There's no boilerplate code available for using this package yet, but there is an open issue in the associated GitHub project requesting a working example: https://github.com/MatthieuLemoine/electron-push-receiver/issues/8

like image 145
Ian D. Miller Avatar answered Sep 30 '22 10:09

Ian D. Miller