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

      时间:2023-07-30

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

                上一篇:始终保持 Firebase 实时数据库中的数据同步 下一篇:无法访问 zzbfm 类文件 zzbfm not found, firebase, android?

                相关文章

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

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