Created
August 9, 2011 19:20
-
-
Save robotadam/1134928 to your computer and use it in GitHub Desktop.
Sending custom push data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"android": { | |
"alert": "hi android", | |
"extra" : { | |
"a_key" : "a value", | |
"another_key" : "another value" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"aps": { | |
"alert": "hi!" | |
}, | |
"foo": "bar" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.