Skip to content

Instantly share code, notes, and snippets.

@mitchtabian
Last active April 10, 2019 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitchtabian/536728790f7b00ecee33675c9e992f4e to your computer and use it in GitHub Desktop.
Save mitchtabian/536728790f7b00ecee33675c9e992f4e to your computer and use it in GitHub Desktop.
//url
https://fcm.googleapis.com/fcm/send
//headers
Authorization: <Your Server Key>
Content-Type: application/json
//body
{
"to" : "< user FCM token >",
"data" : {
"message" : "This is my data message",
"title" : "This is my data title",
"data_type": "direct_message"
}
}
@firdauser
Copy link

Hi Sir. May I know where you put this command or file in project directory?

@iirccm
Copy link

iirccm commented Apr 10, 2019

@firdauser, I guess these codes will be used in Postman but only the body (curly brackets) part, the others show the required information to add in url and headers sections there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment