Send a message to multiple devices with Firebase http v1 api

Viewed 539

How to send a message to multiple devices with new Firebase http v1 API?

Before I use the legacy http protocol, so I just send messages to users with their registration tokens:

{
  "to": [reg_token_1, reg_token_2, ...,],
  "priority": "high",
  "data": {
    "title": "Hello!",
    "message": "Hello everyone"
  }
}

Is there any way to send message to multiple registration tokens if using new http v1 api?

1 Answers

You can use “channels” for this (named topics).

Related