I'm trying to send notification of list of users, is this applicable in firebase REST API. what I tried and succeeded is send a notification for a specific user and broadcast notification but I didn't find a sample request for a group of users!
below is the request I used for Broadcast by POSTMAN :
URL :
https://fcm.googleapis.com/fcm/send
Body:
{ "data":
{
"title": "Firebase notification",
"detail": "I am firebase notification. you can customise me. enjoy"
},
"notification":{
"title":"Hi from Postman ",
"body":"great match!"
},
"to":"/topics/all"
// I don't think to could accept an array of the users device token
}
Firebase Cloud Message doesn't have the concept of a user, nor of a group of users. It instead has two ways to target messages:
Neither of these is pertinently better than the other, as they both have their own use-cases. The choice is typically one of convenience versus control.