Push notification with service worker in mozilla f

2019-09-09 05:59发布

问题:



I am new to service worker and trying to learn it. I am implementing push notification using service worker. I am looking for simple demo code for pushing at server side and receive at client side notification as a reference in developing my web application. Suggestions will be very helpful. I am using node.js for implemention.

Thank you.

回答1:

You can look at the examples in the Web Push category of the ServiceWorker Cookbook.

The examples are using the web-push Node.js library.