caccas Member Licensed User Longtime User Jul 21, 2014 #1 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)
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)
Erel B4X founder Staff member Licensed User Longtime User Jul 21, 2014 #2 Have you set the api key in config.txt? Upvote 0
caccas Member Licensed User Longtime User Jul 21, 2014 #3 Erel said: Have you set the api key in config.txt? Click to expand... 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
Erel said: Have you set the api key in config.txt? Click to expand... 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
Erel B4X founder Staff member Licensed User Longtime User Jul 21, 2014 #4 You need two values: sender id which is the project number and API key http://developer.android.com/google/gcm/gs.html Upvote 0
You need two values: sender id which is the project number and API key http://developer.android.com/google/gcm/gs.html
caccas Member Licensed User Longtime User Jul 21, 2014 #5 Erel said: You need two values: sender id which is the project number and API key http://developer.android.com/google/gcm/gs.html Click to expand... Hi, OK, I mentioned in the device program SenderId = Prohect Number and the API Key i insert in config.txt. But the error remains. thank you, Upvote 0
Erel said: You need two values: sender id which is the project number and API key http://developer.android.com/google/gcm/gs.html Click to expand... Hi, OK, I mentioned in the device program SenderId = Prohect Number and the API Key i insert in config.txt. But the error remains. thank you,
caccas Member Licensed User Longtime User Jul 21, 2014 #6 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: Jul 22, 2014 Upvote 0
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!