Skip to content

Instantly share code, notes, and snippets.

@cbrunnkvist
Created October 27, 2015 14:52
Show Gist options
  • Save cbrunnkvist/ef3df4f5ed0f2b026afb to your computer and use it in GitHub Desktop.
Save cbrunnkvist/ef3df4f5ed0f2b026afb to your computer and use it in GitHub Desktop.
[Appcelerator Titanium SDK 4.1.1] First argument received by push notification event handler
{
"type": "callback",
"source": {
"pushType": "gcm",
"invocationAPIs": [],
"bubbleParent": true,
"showTrayNotification": true,
"enabled": false,
"__propertiesDefined__": true,
"singleCallback": false,
"_events": {
"callback": {}
},
"focusAppOnPush": false,
"debug": false,
"showAppOnTrayClick": true,
"showTrayNotificationsWhenFocused": false,
"apiName": "Ti.Module"
},
"payload": "{\"android\":{\"icon\":\"appicon\",\"sound\":\"default\",\"alert\":\"Olympic committee gets $10M boost\"},\"node_id\":\"80553\"}",
"bubbles": false,
"cancelBubble": false
}
{
"code": 0,
"data": {
"alert": "Olympic committee gets $10M boost",
"node_id": "80553",
"sound": "default",
"icon": "appicon",
"aps": {
"sound": "default",
"alert": "Olympic committee gets $10M boost"
}
},
"type": "remote",
"source": {},
"inBackground": false,
"success": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment