使用FCM在Apple Safari中推送通知 [英] Push notifications in Apple Safari with FCM

本文介绍了使用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.

这篇关于使用FCM在Apple Safari中推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆