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

    <legend id='EB6qT'><style id='EB6qT'><dir id='EB6qT'><q id='EB6qT'></q></dir></style></legend>
    <tfoot id='EB6qT'></tfoot>
      <bdo id='EB6qT'></bdo><ul id='EB6qT'></ul>

    1. <i id='EB6qT'><tr id='EB6qT'><dt id='EB6qT'><q id='EB6qT'><span id='EB6qT'><b id='EB6qT'><form id='EB6qT'><ins id='EB6qT'></ins><ul id='EB6qT'></ul><sub id='EB6qT'></sub></form><legend id='EB6qT'></legend><bdo id='EB6qT'><pre id='EB6qT'><center id='EB6qT'></center></pre></bdo></b><th id='EB6qT'></th></span></q></dt></tr></i><div id='EB6qT'><tfoot id='EB6qT'></tfoot><dl id='EB6qT'><fieldset id='EB6qT'></fieldset></dl></div>
    2. 流式细胞仪 |多个发件人 ID

      时间:2023-07-29
        <tbody id='qMDgG'></tbody>
      <tfoot id='qMDgG'></tfoot>

    3. <legend id='qMDgG'><style id='qMDgG'><dir id='qMDgG'><q id='qMDgG'></q></dir></style></legend>

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

                <bdo id='qMDgG'></bdo><ul id='qMDgG'></ul>
                本文介绍了流式细胞仪 |多个发件人 ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                从 GCM 迁移到 FCM.

                在 GCM 中,我们可以为多个发件人 ID 调用 getToken() 方法,如下所示:

                In GCM, we can call getToken() method for multiple sender ids as below:

                String senderIds = "112233445566,889922338899";
                String token = instanceID.getToken(senderIds,
                                        GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
                

                Q1 - 进入 FCM 后,它会保持不变还是我需要进行任何更改才能获取多个发件人 ID 的令牌?

                Q1 - After moving into FCM, will it remain same or I need to make any changes in order to get the token for multiple sender ids?

                来自 这个 参考,我知道我可以为每个发件人 ID 调用 getToken("senderIds1", "FCM"),但我希望在进入 FCM 时进行最少的代码更改.

                From this reference, I know that I can call getToken("senderIds1", "FCM") for each sender Id, but I want minimum code changes while moving into FCM.

                Q2 下面将适用于 FCM(与 GCM 相同),否则我必须调用 getToken("senderIds1", "FCM");getToken("senderIds2", "FCM")?

                Q2 Will below work for FCM (same like GCM) or I have to call getToken("senderIds1", "FCM"); getToken("senderIds2", "FCM")?

                getToken("senderIds1, senderIds2", "FCM") 
                

                推荐答案

                更多地了解这个功能——扫描文档和查看旧帖子——我决定更新这个答案.由于行为本身在 FCM 正式发布之前就已经存在,因此服务中(幕后)已经更新了很多东西(有些已弃用).这方面的一个例子是回到 C2DM 到 GCM 迁移,令牌所在的部分'不可互操作被声明.

                Looking more into this function -- scanning the documents and viewing old posts -- I've decided to update this answer. Since the behavior itself existed way before FCM was officially released, a lot of things have already been updated (some deprecated) in the service (under the hood). An example of this is going way back to C2DM to GCM migration, the part where the tokens weren't interoperable was stated.

                对于通过传递逗号分隔的 senderIds 来使用 getToken(),由于没有记录或在任何官方 FCM 文档或声明中建议/提及它,最好避免使用它们,而是继续执行官方程序 - 通过使用 getToken("senderId", "scope") for each 发件人并将这些令牌中的每一个维护为需要.

                For using getToken() by passing comma-separated senderIds, seeing as it is not documented or is advised/mentioned in any official FCM documentation or statements, it is best to avoid using them and instead proceed with the official procedure -- by using getToken("senderId", "scope") for each sender and maintaining each of those tokens as needed.

                通过传递逗号分隔的 senderIds 来选择仍然使用 getToken() 将来可能会产生意外的行为,因此我强烈建议开发人员继续执行重复帖子中建议的程序.

                Choosing to still use getToken() by passing comma-separated senderIds may probably produce unexpected behaviors in the future, so I strongly encourage developers to proceed with the suggested procedure in the duplicate post.

                这篇关于流式细胞仪 |多个发件人 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Firebase 消息传递 - 什么是“content_available": 真的 下一篇:Firebase 通知和数据

                相关文章

              • <small id='cHBFt'></small><noframes id='cHBFt'>

                <legend id='cHBFt'><style id='cHBFt'><dir id='cHBFt'><q id='cHBFt'></q></dir></style></legend>
                  <tfoot id='cHBFt'></tfoot>
                    <bdo id='cHBFt'></bdo><ul id='cHBFt'></ul>

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