Created
May 26, 2019 07:20
-
-
Save phuochau/2cf448b05075796979871f60c6eaa094 to your computer and use it in GitHub Desktop.
Send Firebase push notification with cURL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -d '{ | |
"to": "REGISTRATION_TOKEN", | |
"notification": { | |
"title" : "Hello", | |
"body" : "World" | |
} | |
}' \ | |
-i -H "Application/json" \ | |
-H "Content-type: application/json" \ | |
-H "Authorization: key=SERVER_KEY" \ | |
-X POST https://fcm.googleapis.com/fcm/send |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment