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

error: 'InvalidRegistration' } #171

Closed omaisali closed 8 years ago

omaisali commented 8 years ago

I checked again and again, registration id is correct. Why i am getting this. I am using node-gcm

{ multicast_id: 5492428094164707000, success: 0, failure: 1, canonical_ids: 0, results: [ { error: 'InvalidRegistration' } ] } { message_id: 5286640476742132000 }

eladnava commented 8 years ago

@omaisali can you please post the solution for others, if they encounter the same error?

omaisali commented 8 years ago

@eladnava i was using ocr to get registration and thn i was putting it to server. Registration id was wrong as ocr adds some characters in it.