FCM 主题限制和 expiration/invalidation 旧的未使用主题?

FCM topic limits and expiration/invalidation of old unused topics?

我使用 FCM 主题已经有一段时间了,但是文档非常有限,而且大多数搜索都指向相同的页面,所以我在这里问,希望有人在这个主题上有足够的经验来回答我的问题.

我想知道允许的主题数量是否有限制,不再使用的主题会怎样?我的意思是,什么时候主题会无效?

我遇到过取消订阅某个主题似乎不起作用的问题,即使我得到肯定的回复或其他时候通知已发送两次。

为了解决这个问题,我目前正在制作一个新命令,但与以前不同的是,每次命令 运行,我都会将令牌订阅到一个独特的主题,发送通知,取消订阅令牌,然后该主题将永远不会再次使用。这是我更好地控制哪些用户订阅了某些主题的一种方式,因为据我所知,FCM 对此没有提供任何帮助。

所以我的问题是,我是否应该在之后再次取消订阅所有令牌,让 FCM 知道它不再被使用,或者这样做毫无意义? (以防他们进行某种清理)

希望有人能指导我正确的方向。

I am wondering if there is a limit to how many topics are allowed...

...what happens to topics that are no longer in use? I mean, when will a topic be invalid?

To get around this, I am currently making a new command, but unlike before, every time the command is run, I will subscribe tokens to a unique topic, send the notification, unsubscribe token and then that topic will never be used again. This is a way for me to have better control over which users gets subscribed to certain topics, as FCM offers no help with this, that I am aware of.

这个用例本身似乎并没有错。这有点不合常规(虽然我很确定我之前提出过类似的建议)。

目前,对于 FCM v1,不再建议使用 registration_ids 参数(用于发送到多个令牌 -- 每个请求 1000 个)。 FCM 团队似乎正朝着使用主题发送到多个令牌的方向发展。话虽如此,恕我直言,我认为用例是有效的。