首页前端正文

配置浏览器的桌面通知功能

分享 1 121
the5fire
the5fire管理员2018年7月13日 14:04
Python Engineer

使用Django channels做后端支持,channels跟Django结合的不错。

前端比较简单直接参考:

https://developer.mozilla.org/zh-CN/docs/Web/API/notification/Using_Web_Notifications

https://support.google.com/chrome/answer/3220216?co=GENIE.Platform=Desktop&hl=zh-Hans

建议打开允许通知,方便收到回复。

当然,收到通知的前提是论坛的网页必须是在浏览器中打开的。

所有的发帖,我都会收到通知,类似下面: https://sss.the5fire.com/v_the5fire/ebec941d8497174b4d95a18b840d3fd6.png

回帖