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 208 forks source link

Support empty JSON response from FCM #295

Closed eladnava closed 7 years ago

eladnava commented 7 years ago

Closes #292.

To avoid retrying a request with an empty response, I hard-coded the 4xx error.

@hypesystem Please review and let me know if there’s a better way to do this in your opinion.

hypesystem commented 7 years ago

Looks good!