POST :https://fcm.googleapis.com/fcm/send
Authorization: key=AAAAX1p....Kn_ow (Server Key)
Content-Type: application/json
{
"data": {
"body": "here is body",
"title": "Title"
},
"notification": {
"body": "here is body",
"title": "Title",
"click_action": "YOUR_ACTION"
},
"to": "fhA...TX" (Device Token)
}
{
"multicast_id": 6830398802330814190,
"success": 1,
"failure": 0,
"canonical_ids": 0,
"results": [
{
"message_id": "0:1484139452933834%e90f601fe90f601f"
}
]
}
For details: https://firebase.google.com/docs/cloud-messaging/http-server-ref#send-downstream