使用FCM在Apple Safari中推送通知
我们在chrome和firefox中使用FCM实施了推送通知,效果很好,但是Safari不支持FCM所必需的Service Workers.
We implemented push notifications using FCM in chrome and firefox and it worked fine, but Safari doesn't support Service Workers which is mandatory for FCM.
有人处理过此类问题吗?有什么建议吗?
Did anyone deal with this kind of issues? any suggestions?
虽然Service Workers现在可以在Safari上工作,但还不够.
While Service Workers now work on Safari, they are not enough.
文档说:
通过FCM JavaScript API,您可以在支持 Push的浏览器中运行的Web应用程序中接收通知消息API .这包括该支持列表中列出的浏览器版本.
The FCM JavaScript API lets you receive notification messages in web apps running in browsers that support the Push API. This includes the browser versions listed in this support matrix.
Safari不支持Web推送,FCM依靠它来支持浏览器.因此,这意味着Safari无法接收FCM通知.
Safari doesn't support web push, which FCM relies on for browser support. So that means that Safari can't receive FCM notifications.