ToothlessGear / node-gcm

A NodeJS wrapper library port to send data to Android devices via Google Cloud Messaging
https://github.com/ToothlessGear/node-gcm
Other
1.3k stars 206 forks source link

TypeError: message.toJson is not a function #161

Closed cl2898 closed 8 years ago

cl2898 commented 8 years ago

Hi, found that the error occur when try to send notification.

sender.send(message, { registrationIds: registrationIds }, function (err, result) { if(err) console.error(err); else console.log(result); });

hypesystem commented 8 years ago

What are the contents of your message? How do you create the message?

cl2898 commented 8 years ago

Found that is the message created not correctly. Thanks for your advice.