Skip to content

Instantly share code, notes, and snippets.

@marchbold
Last active July 13, 2016 22:08
Show Gist options
  • Select an option

  • Save marchbold/2f8cf99494de3b02fecf to your computer and use it in GitHub Desktop.

Select an option

Save marchbold/2f8cf99494de3b02fecf to your computer and use it in GitHub Desktop.
Complete GCM Payload using the Push Notifications ANE
{
"data" : {
"notification" : {
"icon" : "ic_stat_distriqt_default",
"alert" : "You have a notification",
"title" : "You have a notification",
"body" : "The body of the notification",
"sound" : "default",
"vibrate": "true",
"largeIcon": "assets/notifications/icons/largeIcon.png",
"style": {
"type": "text",
"text": "Some longer and larger content that will be used for a text style big view.\n\nThe body content will be shown in the normal view, but this content will be shown in the expanded view. ",
"lines": [
"Inbox message line 1",
"Inbox message line 2"
],
"image":"http://example.com/path/to/image.png"
},
"groupIcon": "ic_stat_distriqt_default",
"groupKey" : "groupKey",
"groupTitle": "You have %d notifications",
"groupSummary": "Message displayed at bottom of notifications",
"category": "INVITE_CATEGORY"
},
"user_custom": "some-custom-value"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment