【问题标题】:Is there a way to send firebase web push notification from the firebase console有没有办法从 firebase 控制台发送 firebase 网络推送通知
【发布时间】:2019-08-23 00:41:41
【问题描述】:

我认为 firebase 控制台只能向 android 和 IOS 应用发送通知,而不能向网络浏览器发送通知,对吗?

【问题讨论】:

    标签: javascript firebase google-chrome push-notification firebase-cloud-messaging


    【解决方案1】:

    Firebase 云消息传递 (FCM) 支持 Android、iOS 和 Web 应用程序。

    FCM JavaScript API 可让您在支持 Push API 的浏览器中运行的 Web 应用程序中接收通知消息。

    这是official document

    但你要知道有些浏览器不支持 Push API。

    Can I use: Push API support

    【讨论】:

    • 感谢您的回答,我想知道是否有办法从 Firebase 控制台向浏览器发送推送通知,而无需编写后端代码来发送通知。
    • 当我打开 firebase 控制台时,我只能向 IOS 和 Android 发送通知,但对于网络,我只能使用 FCM Api 发送。
    猜你喜欢
    • 2017-08-24
    • 2017-11-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-03
    • 2020-05-10
    • 1970-01-01
    相关资源
    最近更新 更多