Skip to content

Instantly share code, notes, and snippets.

@sharpred
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save sharpred/9004271 to your computer and use it in GitHub Desktop.

Select an option

Save sharpred/9004271 to your computer and use it in GitHub Desktop.
Push Notification. This is a sample push notification payload file that Creator will send to registered devices
{
"title": "External Link Example (Get)",
"alert": "Sample Alert",
"icon": "little_star",
"badge": "+1",
"sound": "circus.wav",
"vibrate": false,
"callToAction": {
"action": "B",
"uri": "http: //www.example.com",
"type": "GET"
},
"urgent": "true",
"homeScreenMessage": "true"
},
{
"title": "External Link Example (Post)",
"alert": "Sample Alert",
"icon": "little_star",
"badge": "+1",
"sound": "circus.wav",
"vibrate": false,
"callToAction": {
"action": "B",
"uri": "http: //www.example.com",
"type" : "POST",
"form" : [{}] //an array of key/value pair objects to pre-populate an HTTP post form
},
"urgent": "true",
"homeScreenMessage": "true"
},
{
"title": "In App Example Flights",
"alert": "Sample Alert",
"icon": "little_star",
"badge": "+1",
"sound": "circus.wav",
"vibrate": false,
"callToAction": {
"action": "P",
"uri": "flights",
"link": {"flightNumber":"BA176"}
},
"urgent": "true",
"homeScreenMessage": "true"
},
{
"title": "In App Example Excursions",
"alert": "Sample Alert",
"icon": "little_star",
"badge": "+1",
"sound": "circus.wav",
"vibrate": false,
"callToAction": {
"action": "P",
"uri": "excursion",
"link": {"code":"1008991350"}
},
"urgent": "false",
"homeScreenMessage": "false"
},
{
"title": "In App Example Currency",
"alert": "Sample Alert",
"icon": "little_star",
"badge": "+1",
"sound": "circus.wav",
"vibrate": false,
"callToAction": {
"action": "P",
"uri": "foreignCurrency",
"link": {"type":"travelmoney"}
},
"urgent": "false",
"homeScreenMessage": "false"
}
@sharpred

sharpred commented Mar 7, 2014

Copy link
Copy Markdown
Author

I have updated this to reflect Fede's comments and given sample deep links

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