更新时间:2023-09-10 15:11:40
问题是Firebase Messaging仅使用一种方法来传递通知.那就是Push API规范规范,并且该规范(错误和不幸的是)不允许服务工作者在用户未允许不相关许可 show 通知的情况下接收消息.
The problem is that Firebase Messaging is only using 1 method to deliver notifications. That is the Push API specification spec, and that specification (wrongly and unfortunately) does not allow a service worker to receive messages without the user allowing an unrelated permission to show notifications.
此修复程序将使Firebase Messaging团队提供一种将消息传递到活动网页的不同方式-长轮询或websocket.
The fix would be for the Firebase Messaging team to provide a different way to deliver messages to active web pages -- long polling, or websockets.
但这对他们来说将是额外的工作,并且可能没有足够的人提出要求.
But it would be extra work for them, and may be not enough people are requesting it.