什么是Android应用程序开发中的推送通知?怎么实现这个? [英] what is push notification in android apps development? how to implement this?

查看:120
本文介绍了什么是Android应用程序开发中的推送通知?怎么实现这个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Android应用程序开发的新手。什么是Android应用程序开发中的推送通知以及如何实现它?

i am new to android apps development. what is push notification in android apps development and how to implement this?

推荐答案

使用推送通知基本上意味着用户设备将以某种方式从服务器接收将导致的消息在状态栏中的通知中 - 即使应用程序没有自行运行。基本上有两种实现方法:
Using push notifications basically means that the users device will somehow receive messages from a server which will result in a notification in the status bar - even if the app is not running itself. There are basically two ways of achieving this:
  1. 通过SMS(短信)。在这里,您必须截取短信并在您的应用中对其做出反应。
  2. 通过提取服务,例如 Google Cloud Messaging for Android 。还有其他类似的服务(例如 Urban Airship PushWoosh 执事 Xtify )他们都在自己的网站上有教程。所以基本上,决定你要使用哪一个,并从教程开始。
  1. Via SMS (text message). Here you will have to intercept the SMS and react to it in your app.
  2. Via a pulling service such as Google Cloud Messaging for Android. There are other similar services too (e.g. Urban Airship, PushWoosh, Deacon and Xtify) and they all have tutorials on their sites. So basically, decide which one you want to use and start with the tutorial to go with it.


你能给我任何示例演示代码的链接。完整的一步一步演示...我尝试了谷歌云消息传递这个,但我得到一些错误。 GCM无法重新获得类型。无法修复它。
can you give me any link with sample demo code. complete step by step demo... i tried Google Cloud Messaging for Android this but i get some error. GCM cannot reslove a type. not able to fix it.


GCM入门网站。你是否遵循了所有这些步骤?如果您无法将GCM解析为某种类型,则可能未在SDK管理器中安装 Google Cloud Messaging for Android Library (在 Extras 下)。还要确保安装了该列表中听起来合理的所有内容。
There are step by step instructions on the Getting Started with GCM site. Did you follow all of those steps? If you can''t resolve GCM to a type, you may not have installed the Google Cloud Messaging for Android Library in the SDK Manager (under Extras). Also make sure, that everything that sounds reasonable in that list is installed.


这篇关于什么是Android应用程序开发中的推送通知?怎么实现这个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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