• <tfoot id='UCyhE'></tfoot>

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

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

      <bdo id='UCyhE'></bdo><ul id='UCyhE'></ul>
    <legend id='UCyhE'><style id='UCyhE'><dir id='UCyhE'><q id='UCyhE'></q></dir></style></legend>

      1. FCM 接收消息问题

        时间:2023-07-28

          <small id='4sMUq'></small><noframes id='4sMUq'>

          <tfoot id='4sMUq'></tfoot>
        • <i id='4sMUq'><tr id='4sMUq'><dt id='4sMUq'><q id='4sMUq'><span id='4sMUq'><b id='4sMUq'><form id='4sMUq'><ins id='4sMUq'></ins><ul id='4sMUq'></ul><sub id='4sMUq'></sub></form><legend id='4sMUq'></legend><bdo id='4sMUq'><pre id='4sMUq'><center id='4sMUq'></center></pre></bdo></b><th id='4sMUq'></th></span></q></dt></tr></i><div id='4sMUq'><tfoot id='4sMUq'></tfoot><dl id='4sMUq'><fieldset id='4sMUq'></fieldset></dl></div>
            • <bdo id='4sMUq'></bdo><ul id='4sMUq'></ul>
                <tbody id='4sMUq'></tbody>
            • <legend id='4sMUq'><style id='4sMUq'><dir id='4sMUq'><q id='4sMUq'></q></dir></style></legend>

                  本文介绍了FCM 接收消息问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在将 FCM 集成到我的项目中.但是在收到通知时,我在日志中遇到错误.(错误文本颜色为蓝色)

                  I'm integrating FCM to my project. But I'm getting below error in Log while notification received. (Error text color is blue)

                  W/FirebaseMessaging: Received message with unknown type: text
                  

                  我的代码是这样的:

                  public void onMessageReceived(RemoteMessage remoteMessage) {
                          Log.d("Notification", "Success");
                          sendNotification(remoteMessage);
                  }
                  

                  在这段代码中,第一行没有执行,也没有调试.

                  In this code, the first line is not executing and it is not debugging also.

                  推荐答案

                  终于找到解决方案了

                  在php端我发送

                  "message_type":"text"
                  

                  这就是我得到上述错误的原因.

                  That's why I got above error.

                  由于message_type"关键字是 FCM 预定义的,因此存在冲突.因此,在 PHP 代码中更改该关键字.

                  As "message_type" keyword is predefined by FCM so it is conflicting. So change that keyword in PHP code.

                  这篇关于FCM 接收消息问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:有什么方法可以在后台使用 FirebaseMessagingService 从推送通知中获取数据? 下一篇:创建 FCM 主题需要很长时间才能在控制台中显示

                  相关文章

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

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

                      <tfoot id='RVMTY'></tfoot>
                    1. <legend id='RVMTY'><style id='RVMTY'><dir id='RVMTY'><q id='RVMTY'></q></dir></style></legend>

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