Created
November 2, 2017 09:38
-
-
Save vineethvijayan/ec3502567b99b6bead9fca346f3d4666 to your computer and use it in GitHub Desktop.
Firebase PN using curl command
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
https://android.jlelse.eu/firebase-push-notification-using-curl-command-devoid-backend-e63795d282c4 | |
curl -X POST --header "Authorization: key=<SERVER KEY>" \ | |
--Header "Content-Type: application/json" \ | |
https://fcm.googleapis.com/fcm/send \ | |
-d "{\"to\":\"<FCM TOKEN>\",\"notification\":{\"body\":\"ENTER YOUR MESSAGE HERE\"}" | |
curl -X POST --header "Authorization: key=<Server key>" \ | |
--Header "Content-Type: application/json" \ | |
https://fcm.googleapis.com/fcm/send \ | |
-d "{\"to\":\"<FCM TOKEN/TOPICS>\",\"content_available\":true,\"priority\":\"high\",\"data\":{\"key1\":\"value1\"}}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment