• <legend id='0ZamX'><style id='0ZamX'><dir id='0ZamX'><q id='0ZamX'></q></dir></style></legend>

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

      <small id='0ZamX'></small><noframes id='0ZamX'>

    1. <tfoot id='0ZamX'></tfoot>

        Android - 如何从多个设备检测同一用户?

        时间:2023-07-30

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

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

                1. 本文介绍了Android - 如何从多个设备检测同一用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在开发一个将用户创建的数据发送到服务器的应用程序.

                  I am developing an app that sends user-created data to a server.

                  当他在不同设备上使用该应用时,是否可以识别同一用户我的应用不必请求访问他的 Google 帐户、需要额外权限或要求他创建自定义登录凭据?(这很重要,因为我的应用需要为匿名"用户工作.)

                  Is it possible to recognise the same user when he is using the app on different devices without my app having to request access to his Google account, requiring additional permissions or asking him to create custom login credentials? (This is important as my app needs to work for 'anonymous' users.)

                  我的应用程序使用推送通知,对于任何给定用户,我了解 FireBase 生成的令牌 ID 可能对于他的每个设备安装的应用程序都是相同的.因此,我正在考虑使用这些令牌 ID 来跨多个设备识别同一用户.但是,我不确定这种方法有多可靠 - 或者是否有更好的方法?

                  My app uses push notifications and, for any given user, I understand that the token ID generated by FireBase may be the same for each of his device installations of the app. So I am considering using these token IDs to identify the same user across multiple devices. However, I'm not sure how reliable that approach would be - or if there is a better way?

                  注意 - 我发现 唯一标识符的最佳做法(特别是 处理多个安装部分),但它没有帮助.

                  NB - I found Best Practices for Unique Identifiers (the Handling Multiple Installations section in particular), but it hasn't helped.

                  推荐答案

                  我们可以用同一个账号管理多个安装,

                  We can manage multiple installation with same account,

                  1. 使用 firebase 生成设备令牌
                  2. 在本地和服务器上存储令牌
                  3. 在初始屏幕上始终检查存储在本地的令牌和存储在服务器上的令牌
                  4. 如果显示差异,请用户仅保持一台设备处于活动状态以接收通知,如果用户选择当前设备将该令牌存储到服务器.

                  这篇关于Android - 如何从多个设备检测同一用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:iOS FirebaseCloudMessaging 通知在调试/试飞或发布中不起作用 下一篇:奥利奥没有在后台调用 FCM 通知

                  相关文章

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

                      <bdo id='1Ab6Q'></bdo><ul id='1Ab6Q'></ul>
                  1. <legend id='1Ab6Q'><style id='1Ab6Q'><dir id='1Ab6Q'><q id='1Ab6Q'></q></dir></style></legend>
                  2. <small id='1Ab6Q'></small><noframes id='1Ab6Q'>

                    <tfoot id='1Ab6Q'></tfoot>