Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Invalid RegistraitonID with GCM - working with phonegap for android?

I have done with the server side coding with deviceId, apiKey and senderId. May I know why I still get this "Invalid Registration" ??

like image 963
Lakshmi Vadupu Avatar asked Aug 27 '12 12:08

Lakshmi Vadupu


1 Answers

Check the registration ID that is generated on the client side. It seems that registration id in the client side and server side do not match.

Here is the explanation from the GCM page.

Check the formatting of the registration ID that you pass to the server. Make sure it matches the registration ID the phone receives in the com.google.android.c2dm.intent.REGISTRATION intent and that you're not truncating it or adding additional characters. Happens when error code is InvalidRegistration.

like image 71
Parvin Gasimzade Avatar answered Nov 08 '22 06:11

Parvin Gasimzade