how to send FCM notification to 2000 topics

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 11

May 10, 2017 6:17:22 AM via Website

I have 2000 topics, for example user1, user2, user3, user4, etc. There are 1000 devices each subscribed to one of these 2000 topics.
So there are 1000 devices subscribed to topic user1, and another 1000 devices subscribed to topic user2 and so on.
I'm sending to 2000 topics by taking 3 topics at a time, as there is a 2 operators only per condition limitation in FCM.
condition = user1 || user2 || user3
sendNotification()
condition = user4 || user5 || user6
sendNotification()
condition = user7 || user8 || user9
sendNotification()
Above process repeats until all the 2000 topics are covered.
Is there any better way than what i'm doing ?