• <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 接收消息问题

        FCM receive message Issue(FCM 接收消息问题)

          <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 接收消息问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  When does a FCM token expire?(FCM 令牌何时到期?)
                  Firebase Cloud Messaging (FCM) - Launch Activity when user clicks the notification with extras(Firebase Cloud Messaging (FCM) - 当用户点击带有附加功能的通知时启动活动)
                  Implement Firebase inside of a Library(在库中实现 Firebase)
                  Firebase Backward compatibility with GCM(Firebase 与 GCM 的向后兼容性)
                  Receiving the FCM notifications multiple times on Nougat(在 Nougat 上多次接收 FCM 通知)
                  Push Notifications are delivered but didReceiveRemoteNotification is never called Swift(推送通知已交付,但 didReceiveRemoteNotification 从未被称为 Swift)

                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>
                            <tbody id='RVMTY'></tbody>
                          <legend id='RVMTY'><style id='RVMTY'><dir id='RVMTY'><q id='RVMTY'></q></dir></style></legend>

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