【问题标题】:No sound when message sent from firebase console when app is closed关闭应用程序时从firebase控制台发送消息时没有声音
【发布时间】:2017-05-14 19:57:21
【问题描述】:

我的代码与 fcm 文档提供的代码相同,我在关闭应用程序时收到通知,而不使用 Intent Extras 或任何 php 代码。

当应用程序在前台时 onMessageRecieved() 方法被调用所以我得到默认声音但是当应用程序在后台或关闭时我没有声音。

我正在使用一部手机和 firebase 控制台发送消息,但没有 php 脚本或 http 请求

我的手机设置了最大通知音量

【问题讨论】:

标签: android firebase firebase-cloud-messaging firebase-notifications


【解决方案1】:

在您的 Firebase 控制台(通知)中,转到高级选项 > 声音 > 启用 - 在发送每条消息之前。因此,即使您的应用程序在后台,您也会听到声音。这是截图

【讨论】:

  • 非常感谢先生,这么愚蠢的问题对不起>
  • 您好,您知道我们如何在应用关闭时从 FCM 控制台发送特定的声音吗?
猜你喜欢
  • 2013-01-25
  • 1970-01-01
  • 2019-01-11
  • 2016-07-02
  • 1970-01-01
  • 1970-01-01
  • 2017-08-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多