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

Display notification using chrome's push manager. #19

Closed sujitgawas19 closed 6 years ago

sujitgawas19 commented 6 years ago

I don't want to use electron's notification api to display the notifications. Is there any other way for displaying notification like the way chrome does??

MatthieuLemoine commented 6 years ago

If you dont' want to use electron, you can use push-receiver directly and handle the incoming notifications as you want from any type of processes.

sujitgawas19 commented 6 years ago

push-receiver was built using chrome's Push manager. So can it be used to display notification the way chrome does??

MatthieuLemoine commented 6 years ago

@sujitgawas19 What do you mean by "the way chrome does" ?

sujitgawas19 commented 6 years ago

@MatthieuLemoine Chrome does not use operating system's native notification APIs it uses custom UI to display notification.

omar10594 commented 6 years ago

@sujitgawas19 You can get the notification data with this library, and then you can show the notification to the user the way you want, with any library. This library allow you to receive notifications from FCM, but you should implement the ui to show the notification. If you don't want use the electron notification api or the html5 notification api, you could use for example node-notifier that use some other libraries (for compatibility), or any other node-compatible library.

sujitgawas19 commented 6 years ago

@omar10594 Okay. Got It. Thank You.