Skip to content Skip to sidebar Skip to footer

Firebase Multicast Cloud Messging

I am trying to implement the server side implementation of firebase cloud messaging. This is the body content for sending message based on topic. { 'to' : '/topics/topic_name', '

Solution 1:

Yes with Firebase we can send messages to multiple registration ids. The syntax is

{
"registration_ids":["red_id1","reg_id2",...],
"to" : "/topics/topic_name",
  "priority" : "high",
  "data" : {
    "message" : "Actual message for notification",
    "title" : "Title"
  }
}

Regarding limits I think there is no limit in Firebase Notification Service for multicast messaging

Solution 2:

i have a doubt with that rinik says " I think there is no limit in Firebase Notification Service for multicast messaging"

but if you send a notification or data payload to 1000 registered ids or more you have a limit of 4 kb per request.

Post a Comment for "Firebase Multicast Cloud Messging"