Google App Engine and Android (OAuth, C2DM, or Cloud Messaging) [closed]

余生长醉 提交于 2019-12-05 11:34:15

Google Endpoints is the way to go as you mentioned C2DM is deprecated Cloud Endpoints makes it extremely easy to create an Android api to communicate with Android clients. You don't really have to do much with cloud endpoints, just code your application by following this oAuth tutorial

Once you have your application ready then its just a matter of annotating your code or getting it done automatically using the eclipse plugin.

Quoting from the docs the development process is as follows:

The general workflow for developing an app using Endpoints is:

  1. Write your App Engine backend code first.
  2. Annotate your App Engine backend code, so classes and client libraries can be generated from it. (Alternatively, use the Google Plugin for Eclipse, which annotates automatically for you.)
  3. Generate the client library using the endpoints.sh utility. (Alternatively, use the Google Plugin for Eclipse to generate the client library.)
  4. Write your android client app, using the client library when making calls to the App Engine backend via 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 bleeding edge, so keep that in mind when you build your app.

Hope this helps and the best of luck!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!