Firebase Cloud Messaging - 检查现有或可用的主题
Firebase Cloud Messaging - Check existing or available Topics
我已阅读 Google Firebase 文档:
Client apps can subscribe to any existing topic, or they can create a new topic.
那么我怎样才能查看有多少现有主题可供我使用?只能通过控制台吗?或者有没有 API?
正如@FrankvanPuffelen 在评论部分中提到的,无法API 获取您拥有的主题列表。
您可以做的是记录您在服务器端创建的主题。所以这在很大程度上取决于你自己的实现。
此外,如果您正在考虑检查特定主题的订阅者数量以便了解哪些订阅者处于活跃状态,这也是不可能的。请参阅@ArthurThompson 的 :
No. There is no current way to query the number of subscribers to a topic, you would have to maintain the relationship between token and topics on you app server.
我已阅读 Google Firebase 文档:
Client apps can subscribe to any existing topic, or they can create a new topic.
那么我怎样才能查看有多少现有主题可供我使用?只能通过控制台吗?或者有没有 API?
正如@FrankvanPuffelen 在评论部分中提到的,无法API 获取您拥有的主题列表。
您可以做的是记录您在服务器端创建的主题。所以这在很大程度上取决于你自己的实现。
此外,如果您正在考虑检查特定主题的订阅者数量以便了解哪些订阅者处于活跃状态,这也是不可能的。请参阅@ArthurThompson 的
No. There is no current way to query the number of subscribers to a topic, you would have to maintain the relationship between token and topics on you app server.