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

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

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

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

        从 firebase 云消息传递中获取所有订阅的主题

        Get all subscribed topics from firebase cloud messaging(从 firebase 云消息传递中获取所有订阅的主题)
        • <bdo id='ht32m'></bdo><ul id='ht32m'></ul>
        • <legend id='ht32m'><style id='ht32m'><dir id='ht32m'><q id='ht32m'></q></dir></style></legend>

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

            <tfoot id='ht32m'></tfoot>

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

                  本文介绍了从 firebase 云消息传递中获取所有订阅的主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  使用新的 FirebaseMessaging,可以通过以下方式轻松取消/订阅主题:

                  Using the new FirebaseMessaging it's easy to un/subscribe to topics via:

                  FirebaseMessaging.getInstance().subscribeToTopic();
                  FirebaseMessaging.getInstance().unsubscribeFromTopic();
                  

                  但是有没有办法获取当前安装订阅的所有主题?

                  But is there any way to get all topics the current installation is subscribed to ?

                  推荐答案

                  我搜索了 Android API,在 SO 上问了同样的问题,但没有找到任何东西.Android API 中没有任何内容可以获取特定令牌的所有主题.

                  I have searched Android API, asked questions for the same on SO but din't find anything. There is nothing in Android API to get all topics of a specific token.

                  https://iid.googleapis.com/iid/info/<TOKEN>?details=true
                  Content-Type:application/json
                  Authorization:key=AAA....i1nM:APA9.....81gTPXCE55....JLPEG0wZobG_ile8lI35JTzHYE5MC..BmDD_Cxj5OxB1Yh....Rs5lo3UwLNL9h-WcocGV....b5bYWNI55kzNsrHK-7GljUDtMn 
                  

                  TOKEN in url : FirebaseInstanceId.getInstance().getToken(senderId, scope);

                  key:可以在 firebase 控制台中找到:您的项目 ->设置->项目设置->云消息传递->服务器密钥

                  key : can be found in firebase console: Your project -> settings -> Project settings -> Cloud messaging -> Server Key

                  注意:找key时要小心,不要使用不同的web api key.

                  senderId可以在设置->中找到云消息传递->发件人 ID

                  senderId can be found in Settings -> Cloud Messaging -> Sender ID

                  scope 通常是 FCM"

                  这篇关于从 firebase 云消息传递中获取所有订阅的主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How can I use CClistview in COCOS2d Android?(如何在 COCOS2d Android 中使用 CClistview?)
                  cocos2d-android: how to display score(cocos2d-android:如何显示分数)
                  Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
                  SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
                  Android file copy(安卓文件拷贝)
                  Android how to detect Copy event of Edittext in android(Android如何在android中检测Edittext的Copy事件)
                  <legend id='35ftY'><style id='35ftY'><dir id='35ftY'><q id='35ftY'></q></dir></style></legend>

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

                          <small id='35ftY'></small><noframes id='35ftY'>

                            <bdo id='35ftY'></bdo><ul id='35ftY'></ul>

                              <tbody id='35ftY'></tbody>