Skip to content

Instantly share code, notes, and snippets.

@dachev
Created February 13, 2012 06:52
Show Gist options
  • Save dachev/1814379 to your computer and use it in GitHub Desktop.
Save dachev/1814379 to your computer and use it in GitHub Desktop.
Payload
/*
* Replace device token with your own
*/
// News
{"aps":
{"badge":1,
"alert":"Breaking News",
"sound":"default"
},
"extra": {
"type":"news",
"endpoint":"http://www.cnycentral.com/api/news/736843/story"
},
"device_tokens":["77BD7CEA5357F00D8FF6C54D819ECFFF3709015207CDE1F3A601E9FFCD8AC2C2"]
}
// Weather
{"aps":
{"badge":1,
"alert":"Severe Weather Alert",
"sound":"default"
},
"extra": {
"type":"weather"
},
"device_tokens":["77BD7CEA5357F00D8FF6C54D819ECFFF3709015207CDE1F3A601E9FFCD8AC2C2"]
}
// Deals
{"aps":
{"badge":1,
"alert":"New Deals Available",
"sound":"default"
},
"extra": {
"type":"deals"
},
"device_tokens":["77BD7CEA5357F00D8FF6C54D819ECFFF3709015207CDE1F3A601E9FFCD8AC2C2"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment