Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • how to send FCM notification to 2000 topics

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 669
    Answer it

     

    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 ? 

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: