ToothlessGear/node-gcm — pull request #2 by monkbroc (2012-07-03 21:32:38+00:00)
Title: Corrected JSON data format when sending message

Hello, Thanks for the Node.js module!

I found an issue when passing data to a GCM message. The JSON needs to have data as a main key, then the payload needs to be sub-keys.

Please review my changes or implement something similar in your main repository.

{
"registration_id" : "APA91bHun4MxP5egoKMwt2KZFBaFUH-1RYqx...",
"data" : {
"foo" : "bar"
},
}