What's wrong with the GCM Application Server documentation?

I am using Google Cloud Messaging and work on both the app server side (server sending push messages) and Android side (smartphone app that receives push messages).

Google used to support documentation with some Java code for the app server at this link: http://developer.android.com/google/gcm/server.html

However, this link is now dead. It now points to https://developers.google.com/cloud-messaging/ and has no information about implementing an application server, specifically in Java.

Where is the application server documentation now, and where can I find sample code for it?

Most importantly, I need to know which firewall ports must open on the application server side to connect to google servers. There is a StackOverflow question , but again, they all point to already lost URLs.

UPDATE 6/12:

I found cached copies of this web page using the Wayback Machine: http://web.archive.org/web/*/http://developer.android.com/google/gcm/server.html

+3


source to share


1 answer


The new server-side documentation is here: https://developers.google.com/cloud-messaging/http

The old Java server code has been removed, but in the GCM demo app now in the git repository, for example: https://github.com/google/gcm/blob/master/gcm-demo-app/src/main/java/ com / google / android / gcm / demo / logic / GcmServerSideSender.java



You should be able to base the server code on that server, or fetch it on your server.

0


source







All Articles