Android Question GCM Error

caccas

Member
Licensed User
Longtime User
Hi everybody,

I get this error when I try to send a message through the example of using the GCM b4a_gcm.bat file.

Does anyone know what might be happening?

I appreciate the help,

C:\Users\meg\Desktop\GCM\desktop>java -cp b4a_gcm.jar anywheresoftware.b4a.c2dm.
C2DM send cac "teste"
java.lang.RuntimeException: Error=MismatchSenderId,name=cac
at anywheresoftware.b4a.c2dm.C2DM.sendMessageTo(C2DM.java:70)
at anywheresoftware.b4a.c2dm.C2DM.main(C2DM.java:218)
 

caccas

Member
Licensed User
Longtime User
Have you set the api key in config.txt?

Yes I inserted the api key in config.txt. In the program I changed the SenderId with the value of the Project Number, because I could not register with the ProjectID.

The Database contains name "cac".

But even using the SenderId with Projectid the error is the same.

I appreciate your support
 
Upvote 0

caccas

Member
Licensed User
Longtime User
Hi Erel,

Now is working. I think the problem was in ProjectId to SenderId, the tutorial is asked to be informed the project id, but should be informed the project number.

Example: My project id is clear -xxxxxx and my project number is 738xxxxxxx.


Many thanks for your help!
 
Last edited:
Upvote 0
Top