• <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

        时间:2023-07-29

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

                  上一篇:从应用程序注销后如何取消订阅 FCM 通知? 下一篇:推送通知未在 Android 前台显示

                  相关文章

                  <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>
                    1. <small id='bxxEd'></small><noframes id='bxxEd'>

                    2. <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>