Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase messaging multiple notification in single request

I must to send multiple notifications with single request using Firebase Messaging. Below is example how i send notification to single user. Any help will be very appreciate.

  curl --header "Authorization: key=***********" --header "Content-Type: application/json" -d '{
  "notification": {
    "title": "FCM Message",
    "body": "This is an FCM Message"
   },
  "to": "********************************************",
   }' https://fcm.googleapis.com/fcm/send
like image 475
Petro Chaikivskyi Avatar asked Apr 19 '26 03:04

Petro Chaikivskyi


1 Answers

I hope it will help somebody.

curl --header "Authorization: key=***********" --header "Content-Type: 
application/json" -d '{
 "notification": {
   "title": "FCM Message",
   "body": "This is an FCM Message"
 },
 "registration_ids": ["********************************************",
    "*********************************",
    "*********************************"]
 }' https://fcm.googleapis.com/fcm/send
like image 82
Petro Chaikivskyi Avatar answered Apr 27 '26 06:04

Petro Chaikivskyi