问题
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.
来源:https://stackoverflow.com/questions/36912561/push-notification-with-service-worker-in-mozilla-firefox