Android的"世界你好" pushnotification例子 [英] Android "hello world" pushnotification example

查看:222
本文介绍了Android的"世界你好" pushnotification例子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的Andr​​oid应用程序开发和我学习一点。我在从我的Web服务器(PHP)到Android应用程序(只是一个HelloWorld的)发送推送通知(云通信)的硬任务。我做了一些谷歌搜索和一些我的疑惑是

I am new to android application development and I am learning little bit. I am in a hard mission for sending push notification ( cloud messaging ) from my web server ( PHP ) to android application ( just a "helloworld" ). I did some "googling" and few of my doubts are

  1. 在谷歌是用我们的设备ID发送通知吧?
  2. 在是否有必要在我们的应用程序不是添加在出明显一些许可接收通知的其他任何code?
  3. 我们要以发送通知注册用户的设备ID为本地数据库我在哪?

请帮我 另外任何一个可以请告诉我从PHP服务器发送一个简单的通知一个code样品或文档?

Please help me Plus can any one please show me a code sample or documentation for sending a simple notification from PHP server ?

在此先感谢

推荐答案

<一个href="http://developer.android.com/google/gcm/index.html">http://developer.android.com/google/gcm/index.html

我没有关于C2DM很多知识。使用GCM,这是很容易实现和配置。

I don't have much knowledge about C2DM. Use GCM, it's very easy to implement and configure.

这篇关于Android的&QUOT;世界你好&QUOT; pushnotification例子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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