xxxxxxxxxx
curl -X POST -H "Authorization: key=YOUR_SERVER_KEY" -H "Content-Type: application/json" -d '{
"notification": {
"title": "First notif",
"body": "Hello world",
"icon": "firebase-logo.png",
"click_action": "http://localhost:8081"
},
"to": "CLIENT_TOKEN"
}' "https://fcm.googleapis.com/fcm/send"
xxxxxxxxxx
curl -X POST -H "Authorization: key=YOUR_SERVER_KEY" -H "Content-Type: application/json" -d '{
"notification": {
"title": "First notif",
"body": "Hello world",
"icon": "firebase-logo.png",
"click_action": "http://localhost:8081"
},
"to": "CLIENT_TOKEN"
}' "https://fcm.googleapis.com/fcm/send"