如何在android中实现推送通知 [英] how to implement the push notification in android

查看:55
本文介绍了如何在android中实现推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在对推送通知进行大量研究,但我不明白如何在 android 1.6 中实现.我想问一下这个有什么要求?我们从服务器端以标签形式或只是信息获得哪种类型的信息?关于此的输入或输出是什么.我向服务器提供哪些输入,哪些输出来自服务器.是否需要任何设备 ID?请建议我谢谢.

I am doing lots of Research on push notification but i don't understand how to implement in android 1.6. I want to ask what is the requirements for this? which type of information we get from the server end either in tags form or just information? what will be the input or output regarding this.Which input i give to the server and which output comes from the server. is there any device id to be require for this? Please suggest me Thanks .

推荐答案

这是链接 到 Google 提供的文档.他们将 PushNotification 的概念命名为 C2DM (Cloud To Device Messaging)

This is the link to documentation given by the Google. They named the concept of PushNotification as C2DM (Cloud To Device Messaging)

您可以通过访问给定的链接获得清晰的描述.对于你的问题,我会给你一些简短的回答.

You can get a clear description by visiting the given link. I'll give you some short answere for your questions.

  • 您无法在 Android 1.6 中实现此功能.您需要 2.2 或更高版本版本
  • 作为 PushNotification,我们只收到警报,而不是完整的详细信息.
  • 作为第三方服务器的输入,应具有 C2DM 的设备注册 ID.
  • 是的,应该有一个设备 ID 来标识激活服务的设备.您可以在 Android 应用尝试与 C2DM 连接的初始阶段获得它

这篇关于如何在android中实现推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆