1. <small id='qtmXd'></small><noframes id='qtmXd'>

        <i id='qtmXd'><tr id='qtmXd'><dt id='qtmXd'><q id='qtmXd'><span id='qtmXd'><b id='qtmXd'><form id='qtmXd'><ins id='qtmXd'></ins><ul id='qtmXd'></ul><sub id='qtmXd'></sub></form><legend id='qtmXd'></legend><bdo id='qtmXd'><pre id='qtmXd'><center id='qtmXd'></center></pre></bdo></b><th id='qtmXd'></th></span></q></dt></tr></i><div id='qtmXd'><tfoot id='qtmXd'></tfoot><dl id='qtmXd'><fieldset id='qtmXd'></fieldset></dl></div>

        <legend id='qtmXd'><style id='qtmXd'><dir id='qtmXd'><q id='qtmXd'></q></dir></style></legend>
      1. <tfoot id='qtmXd'></tfoot>
        • <bdo id='qtmXd'></bdo><ul id='qtmXd'></ul>

        iOS 中的 FCM 通知在收到时不播放声音

        时间:2023-07-30
        <tfoot id='UkmPo'></tfoot>
          <i id='UkmPo'><tr id='UkmPo'><dt id='UkmPo'><q id='UkmPo'><span id='UkmPo'><b id='UkmPo'><form id='UkmPo'><ins id='UkmPo'></ins><ul id='UkmPo'></ul><sub id='UkmPo'></sub></form><legend id='UkmPo'></legend><bdo id='UkmPo'><pre id='UkmPo'><center id='UkmPo'></center></pre></bdo></b><th id='UkmPo'></th></span></q></dt></tr></i><div id='UkmPo'><tfoot id='UkmPo'></tfoot><dl id='UkmPo'><fieldset id='UkmPo'></fieldset></dl></div>

              <bdo id='UkmPo'></bdo><ul id='UkmPo'></ul>
                    <tbody id='UkmPo'></tbody>

                  <small id='UkmPo'></small><noframes id='UkmPo'>

                • <legend id='UkmPo'><style id='UkmPo'><dir id='UkmPo'><q id='UkmPo'></q></dir></style></legend>
                • 本文介绍了iOS 中的 FCM 通知在收到时不播放声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在我的 iOS 应用程序中使用 Firebase 推送通知.虽然我可以通过发送以下有效负载来发送通知,但收到时它不会播放声音.

                  I am using Firebase push notifications in my iOS Application. Although I am able to send the notification by sending below payload, it doesn't play a sound when received.

                  {
                      "to": "myToken",
                      "notification": {
                          "body": "test",
                          "title": "test"
                      },
                      "priority": "high"
                      "sound": "default"
                  }
                  

                  如果我从控制台发送测试消息,它运行良好并播放通知声音.
                  注意:

                  If I send the test message from console, it works well and plays notification sound.
                  Note:

                  1. 我的授权码是正确的
                  2. 我正在向 https://fcm.googleapis.com/fcm/send
                  3. 发送 http 请求
                  4. 我在 iPhone 4、iPhone 6 和 iPhone 6S 上测试过,都收到了无声通知

                  推荐答案

                  你的 JSON "sound" : "default" 应该在 "notification" 键内JSON 的根.这个 JSON 应该可以工作.

                  your JSON "sound" : "default" should be inside the "notification" key not in the root of the JSON. This JSON should work.

                  {
                      "to": "myToken",
                      "notification": {
                           "body": "test",
                           "title": "test",
                           "sound": "default"
                      },
                      "priority": "high"
                  }
                  

                  这篇关于iOS 中的 FCM 通知在收到时不播放声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:FCM 令牌是否在应用更新时刷新? 下一篇:当我尝试将 Analytics 与通知一起使用时,Firebase 中没有静态方法 zzUr()

                  相关文章

                      <bdo id='CO6Ax'></bdo><ul id='CO6Ax'></ul>

                    <i id='CO6Ax'><tr id='CO6Ax'><dt id='CO6Ax'><q id='CO6Ax'><span id='CO6Ax'><b id='CO6Ax'><form id='CO6Ax'><ins id='CO6Ax'></ins><ul id='CO6Ax'></ul><sub id='CO6Ax'></sub></form><legend id='CO6Ax'></legend><bdo id='CO6Ax'><pre id='CO6Ax'><center id='CO6Ax'></center></pre></bdo></b><th id='CO6Ax'></th></span></q></dt></tr></i><div id='CO6Ax'><tfoot id='CO6Ax'></tfoot><dl id='CO6Ax'><fieldset id='CO6Ax'></fieldset></dl></div>
                    <tfoot id='CO6Ax'></tfoot>
                  1. <legend id='CO6Ax'><style id='CO6Ax'><dir id='CO6Ax'><q id='CO6Ax'></q></dir></style></legend>

                      <small id='CO6Ax'></small><noframes id='CO6Ax'>