Example of Java server using google API

66 views
Skip to first unread message

Keven Wang

unread,
Sep 17, 2014, 1:54:02 PM9/17/14
to gcm-for-chr...@googlegroups.com
Hi,

Is there a code example of Java server using Google client API?

The android example's Message contains more fields than Chrome's message (only payload). 

Filip Gorski

unread,
Sep 17, 2014, 4:47:23 PM9/17/14
to gcm-for-chr...@googlegroups.com
Hi, Kaven,

It's hard to address your problem without hearing more specific details.

If your question is related to Google Cloud Messaging, please explain the problem a bit better in response (and provide links to doc and samples you are referring to). Otherwise, perhaps asking the question on stackoverflow.com is more productive (also with details).

Thanks.
Filip

Keven Wang

unread,
Sep 17, 2014, 7:40:17 PM9/17/14
to gcm-for-chr...@googlegroups.com
Hi,

I figured it out. I was trying to setup my own gcm server to do push notification using Java.

The server example should be based on Android. I was looking at chrome extension's pushNotification, which was deprecated.

However, there doesn't seem to be a server side library in Java, in order to push GCM notification.

Filip Gorski

unread,
Sep 19, 2014, 5:49:19 PM9/19/14
to gcm-for-chr...@googlegroups.com
Hi, Keven,

That is correct. Depending on the server type, you will either issue HTTP requests or XMPP requests. There are no wrapper libraries for those that would be GCM specific that I know of. I am glad you worked it out.

Thanks.
Filip
Reply all
Reply to author
Forward
0 new messages