MatthieuLemoine / electron-push-receiver

A module to bring Web Push support to Electron allowing it to receive notifications from Firebase Cloud Messaging (FCM).
https://medium.com/@MatthieuLemoine/my-journey-to-bring-web-push-support-to-node-and-electron-ce70eea1c0b0
MIT License
191 stars 62 forks source link

Working example #8

Closed saenzramiro closed 6 years ago

saenzramiro commented 6 years ago

Hello @MatthieuLemoine, thanks for building this library.

It will be really helpful if you can provide a working example of this.

MatthieuLemoine commented 6 years ago

Yes it could be useful.

If someone wants to tackle this, feel free to do it.

CydeSwype commented 6 years ago

I may try to tackle this over the weekend. I got it working in my project and it was a real lifesaver (because as far as I know, this module is the only way to do push notifications with electron without having to roll your own servers from scratch). I didn't find any other modules built on Urban Airship or any other system... so this module is super valuable. I did struggle at points, mostly navigating some of the terminology of FCM, where to find certain tokens, etc. so I may either build a sample project, record a screencast or both.

CydeSwype commented 6 years ago

Just committed this: https://github.com/CydeSwype/electron-fcm-demo/

Let me know if this satisfies the need for example use. I also captured a screen recording and will try to add voiceover, edit it for brevity and get that posted sometime this week.

MatthieuLemoine commented 6 years ago

Nice work @CydeSwype ! Thanks ! I'll add a link to your example in the Readme.

saenzramiro commented 6 years ago

@CydeSwype Thank you so much! :clap