如何查看已订阅多少个主题? [英] How to check how many topics has been subscribed?
本文介绍了如何查看已订阅多少个主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想确定单个设备订阅了多少个主题.然后,我发现并关注了此帖子.我不知道我是否正确执行此操作,因为我收到了此消息
I want to identify how many topics a single device is subscribed to. Then I found and followed this post. I don't know if I follow it right because i receive this message
{"error":"MissingAuthorization"}"
以下是步骤:
- 从设备获取令牌
- 生成URL:
https://iid.googleapis.com/iid/info/<paste token here>
- 将URL复制并粘贴到浏览器
- 获取回复.
- Get token from the device
- Generate a URL:
https://iid.googleapis.com/iid/info/<paste token here>
- Copy-paste the URL to the browser
- Get the response.
我不知道我做错了什么.我希望有人能帮助我解决这个问题.
I don't know if I'm doing something wrong. I hope someone can help me solve this problem.
推荐答案
是说没有指定授权.确保在请求中包含Authorization:key=<Server API key here>
,其中服务器密钥是您在Firebase控制台中 Cloud Messaing 选项卡下找到的密钥.
It's saying that there is no authorization specified. Make sure you're including the Authorization:key=<Server API key here>
in your request, where the Server Key is the one found in your Firebase Console, under Cloud Messaing tab.
这篇关于如何查看已订阅多少个主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文