Forked from sergsoares/firebase-notification-with-curl.sh
Created
August 15, 2023 06:48
-
-
Save iamkingalvarado/1d216ca6d6e896853f0341729aedc794 to your computer and use it in GitHub Desktop.
Simple curl to send a notification to firebase with a deviceID.
This file contains hidden or 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": DEVICE_ID, | |
"notification": { | |
"title" : " This is my title new ", | |
"body" : " This is the body of my message " | |
} | |
}' \ | |
-i -H "Application/json" \ | |
-H "Content-type: application/json" \ | |
-H "Authorization: key=YOUR_AUTH_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