Skip to content

Instantly share code, notes, and snippets.

@drulabs
Created August 15, 2017 16:13
Show Gist options
  • Save drulabs/8f8cdf9eeae9ffa7eeda14df0c4e9ee7 to your computer and use it in GitHub Desktop.
Save drulabs/8f8cdf9eeae9ffa7eeda14df0c4e9ee7 to your computer and use it in GitHub Desktop.
JSON structure of firebase cloud messaging
// HTTP URL : https://fcm.googleapis.com/fcm/send
{
"registration_ids":["XXXXXXXXXXXX:APA91XXXX7ziO-XXXXXXXXXXXXXXXXXXXXXX3B7OzLmNoAfHmZ3ju1M8gk7d-fYwXXXXXXdOHiwNhP6ThXNizSAu-Q0RkywWR8YCEiXf6a4Y803HY1t-XXXXXXXXXXX"],
"notification": {
"title":"Venue change for Avengers secret meet",
"body":"Tap here to open location on your phone"
},
"data": {
"latitude" : "39.204720",
"longitude" : "-96.564909",
"costume_required" : true,
"duration" : 3600,
"starts_at" : "02:00 AM, August-20, 2017",
"can_bring_sidekick" : false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment