Receive notification parameters not receiving.Based on the documentation tried same,
you will receive in your onNotification method, the extra parameter you pass to GCM in the cURL command:
function onNotification(notification) {
console.log("Event Received: " + e); // { "extra": {"url" : "someurl.js" } }
}
'e' shows nothing..i tried passing through 'extra' or 'data' but not working...can you please give proper working example of this?..[note: i am checking on android]
Receive notification parameters not receiving.Based on the documentation tried same, you will receive in your onNotification method, the extra parameter you pass to GCM in the cURL command: function onNotification(notification) { console.log("Event Received: " + e); // { "extra": {"url" : "someurl.js" } }
} 'e' shows nothing..i tried passing through 'extra' or 'data' but not working...can you please give proper working example of this?..[note: i am checking on android]