amazon sns - Empty payload when sending push notifications from AWS SNS -


i'am using gcm android app send push notification,when send message aws sns console receive notification payload parameter empty below:

{     "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": "",     "bubbles": false,     "cancelbubble": false } 

to receive notification,i have written code:

 cloudpush.addeventlistener('callback', function (evt) {      alert("notification received: "+evt.payload);    }); 

so,how can payload message send aws sns console?


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -