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

Parse response errors #81

Open hypesystem opened 9 years ago

hypesystem commented 9 years ago

https://developer.android.com/google/gcm/http.html#response

results in the response may contain an error. This should be parsed and should be returned as an error for the call (the call fails!), not as data.

This would break the interface and should be made as part of a major version bump.