简体   繁体   English

使用 Django 的浏览器推送通知

[英]Browser push notifications with Django

I'm working on a web app with Django (Python3), and I need to make a push notification system that notify a specific user even if his browser is closed.我正在使用 Django (Python3) 开发一个网络应用程序,我需要制作一个推送通知系统,即使他的浏览器关闭也能通知特定用户。

So I need some advice to know how and where to begin, thanks.所以我需要一些建议来知道如何以及从哪里开始,谢谢。

You can use webpush library which gives web notification features.您可以使用提供 Web 通知功能的webpush库。

You can install this library using pip install django-webpush .你可以使用pip install django-webpush安装这个库。 this work for django framework.这项工作适用于 Django 框架。

If you want to use for python than use pywebpush and install using command pip install pywebpush如果你想使用 python 而不是使用pywebpush并使用命令pip install pywebpush

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM