使用C2DM最简单的方法?
几周过去了,我在 C2DM 工作方面遇到了很多麻烦。我已经阅读了一百万份指南并观看了视频教程,但没有运气。我只需要一种以最简单的方式与我的服务器和手机进行通信的方法。有什么帮助吗?
It has been a couple of weeks and I am having so much trouble making C2DM work. I've read a million guides and watched video tutorials but have had no luck. I just need a way to communicate with my server and my phone in the simplest way. Any help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您仍然有兴趣尝试 C2DM,请尝试安装 Google Plugin for Eclipse 并使用它来生成Android / App Engine 示例项目。它应该能够生成一个能够在 AppEngine 和基本 Android 应用程序之间进行通信的骨架项目。您可以验证示例是否有效,并将其用作调试自定义应用程序的基础。
还有一个相关的 AppEngine + Android 会议。
If you're still interested in trying C2DM, try installing the Google Plugin for Eclipse and use it to generate the Android / App Engine sample project. It should be able to generate a skeleton project that is able to communicate between AppEngine and a basic Android application. You could verify that the sample works and use it as a basis to debug your custom application.
There was also a related AppEngine + Android session at Google I/O this year.
推送到应用程序的最简单方法是使用第三方推送提供商,例如 Urban Airship 或 Xtify。您无需编写直接与 google 交互的代码,而是将第三方 SDK 集成到您的应用程序中,然后它们会处理混乱的事情。
此外,如果您的应用程序变得(或已经)很大,您不必担心扩展问题。跨平台(iOS、黑莓)就更容易了。
The easiest way to get push into your app is to use a third party push provider like Urban Airship or Xtify. Instead of writing the code to interface with google directly you integrate the third party SDK into your app and they handle the messy stuff.
Additionally, you don't have to worry about scaling if your app gets (or already is) big. And going cross-platform (iOS, Blackberry) is that much easier.