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

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

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

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

      1. <tfoot id='XrB9K'></tfoot>
      2. Firebase Instance Id 和 Token 的范围

        时间:2023-07-29
          <i id='4yXLO'><tr id='4yXLO'><dt id='4yXLO'><q id='4yXLO'><span id='4yXLO'><b id='4yXLO'><form id='4yXLO'><ins id='4yXLO'></ins><ul id='4yXLO'></ul><sub id='4yXLO'></sub></form><legend id='4yXLO'></legend><bdo id='4yXLO'><pre id='4yXLO'><center id='4yXLO'></center></pre></bdo></b><th id='4yXLO'></th></span></q></dt></tr></i><div id='4yXLO'><tfoot id='4yXLO'></tfoot><dl id='4yXLO'><fieldset id='4yXLO'></fieldset></dl></div>
            <tbody id='4yXLO'></tbody>

            <bdo id='4yXLO'></bdo><ul id='4yXLO'></ul>

            1. <tfoot id='4yXLO'></tfoot>

            2. <small id='4yXLO'></small><noframes id='4yXLO'>

                <legend id='4yXLO'><style id='4yXLO'><dir id='4yXLO'><q id='4yXLO'></q></dir></style></legend>
                • 本文介绍了Firebase Instance Id 和 Token 的范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我读过很多关于 Firebase Instance Idregistration token 这里,这里和这里.

                  I've read a lot of articles about Firebase Instance Id and registration token here, here and here.

                  我对 Instance IdToken 之间的 范围和关系 有一些混淆.我想验证我的理解是正确还是错误.

                  I have some confusions about their scope and relationship between Instance Id and Token. I would like to validate that my understandings are correct or wrong.

                  1. Instance Id 是按 App 生成的.不是每个安装的设备.例如,如果您有 Mail 应用和 Notes 应用,您将在 firebase 上拥有 两个 Instance Id.
                  2. Token 根据安装的设备生成.例如,如果您有 个用户安装您的应用,您将拥有 个注册令牌.
                  3. 一个Instance Id会有很多注册令牌.
                  4. 通常,我们只需要在我们的应用服务器上保留 注册令牌(不是实例 ID)即可发送 推送通知.
                  1. Instance Id is generated per App. Not per installed device. For example, if you have Mail app and Notes App, you will have two Instance Id on firebase.
                  2. Token is generated per installed devices. For example, if you have ten users installing your app, you will have ten registration tokens.
                  3. One Instance Id will have many registration tokens.
                  4. Normally, we only have to keep registration tokens (not Instance Id) on our App Server to send push notifications.

                  推荐答案

                  1. 部分正确.InstanceID 与应用程序实例有关.在您的示例中,如果您有Mail App 和Notes App,每个都有自己的instance id,但两者并不相同,因此无法将它们分组在一起.

                  1. Partly correct. An InstanceID pertains to the app instance. In your example, if you have the Mail App and the Notes App, each has their own instance id, but the two are not the same, so they can't be grouped together.

                  将应用实例视为应用安装.如果您已在设备上安装了应用程序,则它具有应用程序实例.如果你卸载它,它也会被删除,如果你重新安装它,它是一个新的应用实例.

                  Think of the app instance as the app installation. If you have installed the app on the device, it has the app instance. If you uninstall it, it is also removed, if you re-install it, it's a new app instance.

                  正确.但也有可能为同一设备拥有多个令牌,但这仅适用于拥有多个发件人.

                  Correct. But there's also a possibility to have multiple tokens for the same device, but this only pertains to having multiple senders.

                  有可能.见#2.

                  是的.注册令牌是作为推送通知目标所需的值.

                  Yes. The registration token is the value needed as a target for push notifications.

                  这篇关于Firebase Instance Id 和 Token 的范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Android:FCM java.io.IOException:某些设备上的 SERVICE_NOT_AVAILABLE 下一篇:我们可以在 Firebase 云消息传递中创建多少主题?

                  相关文章

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

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