在android中创建推送通知 [英] Create push notification in android

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

问题描述

如何使用 GCM 或 C2DM 在 Android 中创建推送通知>

谁能帮帮我.谢谢!!

解决方案

它取决于你的要求,你必须做什么.

.服务器端(PHP)和Android代码都可用.

您从 Google 服务中获得了应用程序密钥,您必须将其放在服务器端.

SENDER_ID – 当您想向服务器注册您的设备时必须发送的 Google 项目 ID.

how to create push notification in Android using GCM or either C2DM i have tried and check some sites and didn't get exact answer.i need to know how it works.Can any one provide me good tutorial on push notification

Could anybody help me. Thanks!!

解决方案

Its Depend on your requirement what you have to do.

here is sample of C2DM: in this sample android device is registered wtih server after that server send massage to all device. so there is one way communication(server to Android device)

So all things are done at server side. just download this tutorial. Both Server side(PHP) and Android code are available.

Edited:

you got application key from Google services which you have to put at server side.

SENDER_ID – Google project id which you have to send when you want to register your device with server.

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

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