在 mozilla firefox 中使用 Service Worker 推送通知 [英] Push notification with service worker in mozilla firefox

查看:76
本文介绍了在 mozilla firefox 中使用 Service Worker 推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是服务工作者的新手并试图学习它.我正在使用服务工作者实现推送通知.我正在寻找用于在服务器端推送并在客户端接收通知的简单演示代码,作为开发我的 Web 应用程序的参考.建议会很有帮助.我正在使用 node.js 来实现.

谢谢.



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.

推荐答案

您可以查看 中的示例ServiceWorker Cookbook 的 Web Push 类别.

示例使用 web-push Node.js 库.

这篇关于在 mozilla firefox 中使用 Service Worker 推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆