Google endpoints are the way you mentioned that C2DM is out of date. Cloud endpoints make it extremely easy to create an Android api for communicating with Android clients. You don't have to do much with cloud endpoints, just code your application by following this oAuth tutorial
Once your application is ready, you just need to annotate your code or make it automatically using the eclipse plugin.
A quote from the docs development process is as follows:
General workflow for developing an application using endpoints:
- First write your internal application code.
- Annotate the App Engine firewall code, so classes and client libraries can be created from it. (Alternatively, use the Google Plugin for Eclipse, which will automatically annotate you.)
- Create the client library using the endpoints.sh utility. (Alternatively, use the Google Plugin for Eclipse to create the client library.)
- Write your Android client application using the client library when accessing the App Engine server through the endpoint.
And here is a working Java example on github.
Also keep in mind that Endpoints is an experimental feature meaning it is on the verge of bleeding, so keep that in mind when you create your application.
Hope this helps and good luck!
source share