如何在android中使用C2DM实现推送通知?

发布于 2024-10-10 12:55:58 字数 185 浏览 0 评论 0原文

我想在 android 中制作应用程序,其中我想向服务器发送一些消息,并且还希望在 android 中通过 C2DM 有任何更新时从服务器获取通知。

如何向第三方服务器发送消息。 (第三方服务器,如 php)并且需要输入才能将消息发送到第三方服务器。如何将响应第三方服务器发送到 C2DM 并从 C2DM 向 Android 设备获取通知?

I would like to make app in android in which i wand to send some message to server and also want to get notification from server if there is any updates via C2DM in android.

How to send message to the third party server. (Third-party server like php)and inputs are necessary to send message to the third-party server. and how to send response Third-party server to C2DM and get notification from C2DM to Android device?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毅然前行 2024-10-17 12:55:58

这就像问“我如何编写 Android 应用程序?”并期望得到完整的答案。

我建议您从阅读以下内容开始:
http://code.google.com/intl/sv-SE /android/c2dm/index.html

然后下载 Chrome To Phone 源代码,看看他们如何实现 C2DM 解决方案。这相当复杂,但如果您知道如何从 Android 应用程序和服务器发出 http POST,您就会成功。

Well that's like asking "How do I write an Android application?" and expect to get a full answer.

I suggest you start with reading this:
http://code.google.com/intl/sv-SE/android/c2dm/index.html

Then download the Chrome To Phone source code see how they implement the C2DM solution. It is fairly complicated but if you know how to make http POSTs from your Android application and your server you will succeed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文