Skip to content

Instantly share code, notes, and snippets.

@Zeta55
Last active October 25, 2019 09:26
Show Gist options
  • Save Zeta55/c3f857c51a4b80de85ae63dacbe0fa00 to your computer and use it in GitHub Desktop.
Save Zeta55/c3f857c51a4b80de85ae63dacbe0fa00 to your computer and use it in GitHub Desktop.
{
"message": {
"token": "<device_token>", // send push to particular device
"channel": "<channel_id>", // or to channel
"data": {
"title": "Hello baby!",
"body": "This is my first notification ..."
"<custom_key1>": "<custom_value1>",
"<custom_key2>": "<custom_value2>",
"<custom_key3>": "<custom_value3>"
},
"priority": “high”, // (optional) for real-time delivery
"restricted_package_name": “com.mycompany.myapp”, // (optional) to deliver only to particular stage eg. com.mycompany.myapp.alpha, com.mycompany.myapp.beta, or without suffix for production com.mycompany.myapp
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment