Push notification with service worker in mozilla firefox

孤街醉人 提交于 2019-12-12 03:28:10

问题




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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!