Skip to content

Instantly share code, notes, and snippets.

@robotadam
Created August 9, 2011 19:20
Show Gist options
  • Save robotadam/1134928 to your computer and use it in GitHub Desktop.
Save robotadam/1134928 to your computer and use it in GitHub Desktop.
Sending custom push data
{
"android": {
"alert": "hi android",
"extra" : {
"a_key" : "a value",
"another_key" : "another value"
}
}
}
{
"aps": {
"alert": "hi!"
},
"foo": "bar"
}
@admataz
Copy link

admataz commented Jun 3, 2013

the ios example is incorrect - the custom data property should be within the aps object:

{ "aps": { "alert": "hi!" , "foo": "bar" } }

These gists appear in support documentation at https://support.urbanairship.com/customer/portal/articles/60532-sending-custom-push-data.

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