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

        如何在用户注销时刷新 FCM 令牌?

        时间:2023-07-29
          <bdo id='8jjIp'></bdo><ul id='8jjIp'></ul>

          <small id='8jjIp'></small><noframes id='8jjIp'>

            <tbody id='8jjIp'></tbody>

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

              <tfoot id='8jjIp'></tfoot>
                • <legend id='8jjIp'><style id='8jjIp'><dir id='8jjIp'><q id='8jjIp'></q></dir></style></legend>
                  本文介绍了如何在用户注销时刷新 FCM 令牌?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我第一次获得 FCM 并将其保存到我的 userDefaults.现在当用户注销时,如何再次刷新 FCM 令牌?我搜索了文档和许多其他问题,但没有找到更好的解决方案.

                  I am getting the FCM first time and save it to my userDefaults. Now When user logs out, how can I refresh the FCM token again? I have searched the docs and many other asked questions, but didn't find a better solution.

                  提前致谢.

                  推荐答案

                  FCM Token 是 Instance ID 令牌,它代表已安装的应用程序,而不是已登录的用户.通常,一旦应用保持安装状态,无论哪个用户登录,它都会拥有相同的令牌.

                  The FCM Token is an Instance ID token, it represents the installed app and not the signed in user. Generally once the app remains installed it will have the same token no matter what user is signed in.

                  您必须自己管理与令牌关联的用户.当用户登录时,您应该将令牌与用户的 ID 相关联,当用户退出时,您应该删除该关联.

                  You would have to manage what user is associated to the token yourself. When the user signs in you should associate the token with the user's ID and when the user signs out you should remove that association.

                  这篇关于如何在用户注销时刷新 FCM 令牌?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:FCM/GCM 通过“标签"对通知进行分组.在 iOS 上 下一篇:如果有多个发件人ID,如何确定是否需要刷新令牌?

                  相关文章

                • <legend id='3AxwP'><style id='3AxwP'><dir id='3AxwP'><q id='3AxwP'></q></dir></style></legend><tfoot id='3AxwP'></tfoot>

                      <small id='3AxwP'></small><noframes id='3AxwP'>

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