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

'Invalid recipient key(s) registrationTokens (valid keys: registrationIds, topic, notificationKey)' Regardless #174

Closed AlexCatch closed 8 years ago

AlexCatch commented 8 years ago

Every time without fail I am getting this error when using an IOS registration ID. It works when making a call directly to the GCM endpoint but the wrapper always returns 'invalid recipient key' even when I directly copy the API key and reg ID from Postman.

eladnava commented 8 years ago

Please use registrationIds as the parameter name. registrationTokens is an alias we recently introduced -- unfortunately, the npm package has not been updated to support it yet. @hypesystem

AlexCatch commented 8 years ago

Thanks!