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

Wrong Authorization header causes 401 on sending a push to GCM #192

Closed wingleung closed 8 years ago

wingleung commented 8 years ago

Current code uses the GCM API Key as Authorization header to send request to GCM for pushes.

This didn't work in my use case as I had a different Authorization key so I made a pull request to solve this issue and use the original code as fallback, don't know if this is legacy code or not.

wingleung commented 8 years ago

Oops, I was running 0.9.6. nothing wrong here