14

Is there any constraints about number of different topics for Firebase Cloud Messaging in one app?

2 Answers2

18

Nope. Seeing that FCM has GCM as its core, there is no limit in the number of Topics for any app. There used to be a 1 million limit, but it was removed. You can refer to this Google Developers Blog for that.

Also, when creating a Topic in FCM, it could take up to 24 hours for it to be show up in the Firebase Console, as per this post. Cheers! :D

Community
  • 1
  • 1
AL.
  • 36,815
  • 10
  • 142
  • 281
  • I thought that story for removing 1 milion limit was for the number of subscribers per one topic, not for number of different topics –  Jun 16 '16 at 07:43
  • Well. Technically, its a total of a million subscribers to a single app, regardless of the number of topics. But the limitation is already scrapped. – AL. Jun 16 '16 at 08:24
  • 1
    Now that I've noticed, since technically, FCM is similar to GCM when it comes to topics, your post may be a duplicate or just similar to this [post](http://stackoverflow.com/q/30637418/4625829). Have you seen it before? – AL. Jun 16 '16 at 08:30
  • No, I haven't see that, but now I see that's helpful. Thanks mate. –  Jun 16 '16 at 10:54
  • So you mean. When I subscribe or create a topics, it will take one day to work? – Wai Yan Hein Nov 04 '16 at 11:05
  • 2
    @WaiYanHein No. As soon as there is a single subscriber for the topic, it can be used immediately. But if you're going to use the Firebase console, it will take time for it to be visible in the options. – AL. Nov 04 '16 at 11:06
2

No I don't think so!

Based on the publish/subscribe model, topic messaging supports unlimited subscriptions for each app. You compose topic messages as needed, and Firebase handles message routing and delivering the message reliably to the right devices. link

Seems like you can create topics when you need them!

rpattabi
  • 9,984
  • 5
  • 45
  • 53
Andreas Rolén
  • 508
  • 5
  • 15