【问题标题】:Adding actions to firebase cloud messaging notification向 Firebase 云消息通知添加操作
【发布时间】:2017-01-25 12:12:36
【问题描述】:

如何为 Web 应用程序添加操作(通知下方的按钮)。

我尝试向 firebase-messaging-sw.js 添加操作,但没有任何改变。

【问题讨论】:

    标签: javascript firebase-cloud-messaging


    【解决方案1】:

    您必须将操作添加到在 onBackgroundMessage() 回调中创建的通知中。

    您能否提供到目前为止您尝试过的示例代码?

    【讨论】:

      猜你喜欢
      • 2016-09-24
      • 2016-11-21
      • 2020-06-19
      • 1970-01-01
      • 1970-01-01
      • 2017-12-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多