Can I use web push notifications to update the pag

2019-02-20 04:39发布

I am wondering if I can use web push notifications to update a web page without displaying a notification for the user to interact with. Essentially I want to refresh data after an event on the server.

If this is possible, is it still necessary to receive permission from the user to send these push updates?

1条回答
Luminary・发光体
2楼-- · 2019-02-20 05:09

Yes, you can send push messages without showing a notification, but there are limitations on both Firefox and Chrome on the raw number of "invisible" push messages and the rate at which you send them.

You can experiment a bit with the quotas in different browers using the Push Quota ServiceWorker Cookbook example.

查看更多
登录 后发表回答