在Android应用程序推送通知 [英] push notification in android application

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

问题描述

您好我希望实施推送通知在我自己的Andr​​oid应用程序。我能怎么做?请给我一些想法......

Hi i wish to implement push notification in my own android application. how can i do? please give me some ideas....

这种广播接收机应接收消息,即使我的应用程序被关闭(如Gmail.here我收到我的收件箱新留言,表示时间显示在我的Andr​​oid设备顶部的通知邮件,点击的通知消息的手段直接进入收件箱并查看消息)。

This kind of broadcast receivers should receive messages even if my app is closed(like Gmail.here i receive one new message in my inbox means that time the notification message is displayed on top of my android device,clicked that notification message means directly go to inbox and view that message).

在这里,我想插入我的数据库中的一个数据是指该通知消息是在我的Andr​​oid应用程序甚至显示我的应用程序被关闭。

here i wish to insert one data on my database means the notification message is display on my android app even my app is closed.

推荐答案

请参见 http://developer.android.com/guide/google/gcm/index.html 。您需要实现GCM。

Please see http://developer.android.com/guide/google/gcm/index.html. You need to implement GCM.

编辑:

要得到通知,即使应用程序在后台,看到<一个href=\"http://stackoverflow.com/questions/12073449/android-gcm-push-notification-device-doesnt-receive-notification-if-applicat\">Android GCM(推送通知):如果应用程序停止设备没有收到通知

To get notification even if app is in background, see Android GCM (push notification): device doesn't receive notification if application is stopped.

请参阅的Andr​​oid GCM基本实现,的 http://developer.android.com/guide/google/gcm/demo.html &安培; <一href=\"http://stackoverflow.com/questions/11261000/how-to-setup-google-cloud-messaging-for-android\">How设置谷歌云端通讯的Andr​​oid?

See Android GCM basic implementation, http://developer.android.com/guide/google/gcm/demo.html & How to setup Google Cloud Messaging for Android?

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

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