• <bdo id='cjUvv'></bdo><ul id='cjUvv'></ul>

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

      1. <legend id='cjUvv'><style id='cjUvv'><dir id='cjUvv'><q id='cjUvv'></q></dir></style></legend>
      2. <small id='cjUvv'></small><noframes id='cjUvv'>

        在 android 上从 gcm 迁移到 fcm

        Migrating from gcm to fcm on android(在 android 上从 gcm 迁移到 fcm)

          <tbody id='nL7qa'></tbody>

        <tfoot id='nL7qa'></tfoot>

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

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

                <legend id='nL7qa'><style id='nL7qa'><dir id='nL7qa'><q id='nL7qa'></q></dir></style></legend>
                1. <i id='nL7qa'><tr id='nL7qa'><dt id='nL7qa'><q id='nL7qa'><span id='nL7qa'><b id='nL7qa'><form id='nL7qa'><ins id='nL7qa'></ins><ul id='nL7qa'></ul><sub id='nL7qa'></sub></form><legend id='nL7qa'></legend><bdo id='nL7qa'><pre id='nL7qa'><center id='nL7qa'></center></pre></bdo></b><th id='nL7qa'></th></span></q></dt></tr></i><div id='nL7qa'><tfoot id='nL7qa'></tfoot><dl id='nL7qa'><fieldset id='nL7qa'></fieldset></dl></div>
                2. 本文介绍了在 android 上从 gcm 迁移到 fcm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想在 Android 应用中从 gcm 迁移到 fcm.我是否需要从 gcm 向 android 应用程序的老用户发送推送通知,或者我可以通过服务器的新 fcm 发送它?

                  I want to migrate from gcm to fcm in android app. Do I need to send push notification to old users of the android app from gcm or i can send it through the new fcm from server?

                  FCM 工作正常我能够通过 fcm 在我的设备上接收推送通知,但我无法从 FCM 控制台向旧 GCM 注册令牌发送推送通知.


                  下面是我添加到我的清单文件中的代码,以便 fcm 工作-


                  Below is the code I've added to my manifest file for fcm to work-

                  <uses-permission android:name="com.google.android.z.permission.RECEIVE" />
                  <uses-permission android:name="android.permission.WAKE_LOCK" />
                  <application>
                      <service
                          android:name=".view.activity.MyFcmListenerService">
                          <intent-filter>
                              <action android:name="com.google.firebase.MESSAGING_EVENT" />
                          </intent-filter>
                      </service>
                  
                      <service
                          android:name=".view.activity.MyInstanceIDListenerService">
                          <intent-filter>
                              <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
                          </intent-filter>
                      </service>
                  </application>
                  

                  推荐答案

                  我搜索了很多,但没有找到满意的答案.所以,我应用了这个修复.

                  I searched a lot but couldn't find a satisfactory answer. So, I applied this fix.

                  我继续使用旧方法向 GCM 用户发送推送通知,对于通过 FCM 注册的用户,我可以通过 FCM 或 Firebase 通知控制台向他们发送推送通知.

                  I am continuing using the old method I was using to send push notifications to GCM users and for the users who registers through FCM, I am able to send them push notifications through FCM or Firebase Notification console.

                  附注您无法通过 FCM 向 GCM 注册令牌发送推送通知.

                  这篇关于在 android 上从 gcm 迁移到 fcm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How can I use CClistview in COCOS2d Android?(如何在 COCOS2d Android 中使用 CClistview?)
                  cocos2d-android: how to display score(cocos2d-android:如何显示分数)
                  Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
                  SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
                  Android file copy(安卓文件拷贝)
                  Android how to detect Copy event of Edittext in android(Android如何在android中检测Edittext的Copy事件)
                  <legend id='bxxEd'><style id='bxxEd'><dir id='bxxEd'><q id='bxxEd'></q></dir></style></legend>

                  <tfoot id='bxxEd'></tfoot>

                            <bdo id='bxxEd'></bdo><ul id='bxxEd'></ul>
                              <tbody id='bxxEd'></tbody>
                          • <small id='bxxEd'></small><noframes id='bxxEd'>

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