Comments (1)
消息的推送需要通过 Push Service,客户端在调用订阅消息的 API 后会得到 PushSubscription 对象,其中包含了推送地址与一些 key,客户端将它发送到服务端,然后由服务端存储(例如存到数据库里);
需要推送时可以从数据库中读出来,根据 PushSubscription 的信息与 Push Service 通信,Push Service 会将消息推送到客户端。
from learning-pwa.
Related Issues (6)
- 请问怎么用PWA点击就将这个网页创建桌面快捷应用 HOT 1
- 请问下大佬写博客吗?能否关注下你呢? HOT 1
- 在chrome中点击添加到桌面提示错误 HOT 1
- 页面无法更新资源 HOT 3
- Android上的chrome推送不成功 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learning-pwa.