Not able to send GCM message from Device to server

221 views
Skip to first unread message

Krishna Kishore k

unread,
Apr 29, 2014, 2:12:21 AM4/29/14
to andro...@googlegroups.com
Hello, 

My project ID got whitelisted recently. And I have implemented the server side code for CCS using Java and Smack library. 

I am able to send message from my server to the device by using the Registration id of a device and have also received ACK from GCM server. 

But the problem is while sending the message from Device to server. Thought the server has logged in to GCM, I don't think the message sent from device is reaching the server. I have used the same project id in both my client and server side code. 
The client side code does not throw any error or receive any ACK or NACK from GCM server. It just sends the message and thats it, it is never reaching my CCS server code. 

My client side code using  gcm.send(GCM_SENDER_ID + "@gcm.googleapis.com", id, GCM_TIME_TO_LIVE, data); to send message to the server.

Did anyone face similar issue? Please provide your suggestions on resolving the issue. 

Thanks,
Kishore

Devwrat Lad

unread,
May 1, 2014, 8:36:30 AM5/1/14
to andro...@googlegroups.com
hello,

I am also working on a CCS implementation on GCM server. I am not able to receive anything after deploying on google app engine. Are you receiving ACK after deploying on google app engine when you mentioned it in this:

"I am able to send message from my server to the device by using the Registration id of a device and have also received ACK from GCM server. "
I am looking for any and every help / hint I can find. I would like o know how you are receiving ACK after deploying on google app engine.
Any help will be appreciated.

Thanks!

Krishna Kishore k

unread,
May 2, 2014, 6:02:14 AM5/2/14
to andro...@googlegroups.com
Hi,

I am using the server side implementation code given in the below site.


Also I am using by own Tomcat server to deploy the application. Use the debug mode enabled option  to see if it is connecting properly or not. 

You can even debug from your localhost in eclipse and even localhost can receive ack and nack messages. So test it out on localhost first and then move it to App engine. 

Thanks,
Kris


--
You received this message because you are subscribed to a topic in the Google Groups "android-gcm" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-gcm/ydOjn20eTEQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/b2d1edb0-241c-4a70-b94b-088333f3d8ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages