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

    <tfoot id='CuJGC'></tfoot>

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

      onTokenRefresh 不会在签名的 APK 中被调用,如果之前安装的应用版本没有实现 FCM

      onTokenRefresh not getting called in signed APK, if previous version of app installed doesn#39;t have FCM implemented(onTokenRefresh 不会在签名的 APK 中被调用,如果之前安装的应用版本没有实现 FCM)

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

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

            <tfoot id='fsYdt'></tfoot>
                <tbody id='fsYdt'></tbody>
                <bdo id='fsYdt'></bdo><ul id='fsYdt'></ul>
                本文介绍了onTokenRefresh 不会在签名的 APK 中被调用,如果之前安装的应用版本没有实现 FCM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我在我的 Android 应用程序版本 6 中实现了 FCM.onTokenRefresh() 如果以前没有安装我的应用程序,则会被调用.但是,当我的应用程序具有以前的版本(没有实现 FCM)并且我用版本 6 更新它时,onTokenRefresh() 没有被调用.

                I have implemented FCM in version 6 of my Android application. onTokenRefresh() is getting called if my app is not previously installed. But when my app with a previous version (which did not have FCM implemeted) is already installed and I update it with version 6, then the onTokenRefresh() is not getting called.

                我需要从 Play 商店卸载之前的应用版本,然后再安装新版本吗?

                Do I need to uninstall the previous app version from Play Store and then install new version?

                推荐答案

                我认为这仍然应该是预期的行为.onTokenRefresh() 将在 第一次 应用安装时调用.不是每次都更新.所以也许,您可以手动强制 onTokenRefresh() 就像这篇 post 中提到的那样:

                I think that should still be the intended behavior. onTokenRefresh() will be called the first time the app is installed. Not every time it's updated. So maybe, you could manually force the onTokenRefresh() like what is mentioned in this post:

                如果您想手动强制 onTokenRefresh(),您可以创建一个 IntentService 并删除令牌实例.然后,当你调用getToken时,onTokenRefresh()方法会再次被调用.

                If you would like to manually force the onTokenRefresh(), you can create an IntentService and delete the token instance. Then, when you call getToken, the onTokenRefresh() method will be called again.

                这篇关于onTokenRefresh 不会在签名的 APK 中被调用,如果之前安装的应用版本没有实现 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)
                  <tbody id='IAKM6'></tbody>
                <i id='IAKM6'><tr id='IAKM6'><dt id='IAKM6'><q id='IAKM6'><span id='IAKM6'><b id='IAKM6'><form id='IAKM6'><ins id='IAKM6'></ins><ul id='IAKM6'></ul><sub id='IAKM6'></sub></form><legend id='IAKM6'></legend><bdo id='IAKM6'><pre id='IAKM6'><center id='IAKM6'></center></pre></bdo></b><th id='IAKM6'></th></span></q></dt></tr></i><div id='IAKM6'><tfoot id='IAKM6'></tfoot><dl id='IAKM6'><fieldset id='IAKM6'></fieldset></dl></div>

                    <legend id='IAKM6'><style id='IAKM6'><dir id='IAKM6'><q id='IAKM6'></q></dir></style></legend>

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

                        <bdo id='IAKM6'></bdo><ul id='IAKM6'></ul>
                        <tfoot id='IAKM6'></tfoot>