如何处理多个Android的推送通知 [英] how to handle multiple push notifications in android

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

问题描述

当一个推送通知的到来,如果用户不在看到通知。与此同时,他得到了一个通知和previous通知得到了更新。但它不应该与最新的一次更新。我需要分别得到所有通知来处理它们。这可能吗?

When one push notifications is arrived, if user is not available to see the notification. Meanwhile he got another notification and got updated with previous notifications. But it should not update with latest one. I need to get all notifications separately to handle them. Is it possible?

请过这方面的帮助。

http://chunkiat90.blogspot.in/2013/04/android-multiple-notification-handling.html

由于提前

推荐答案

只需设置一个唯一的ID您的通知,你会总是不更新previous新的通知

Just set an unique id to your notifications and you'll always get a new notification without update previous

UPD:
Juust添加一个int场像 notId ,每次增加它,你发送通知

upd: Juust add an int field like a notId, and increase it every time you send a notification

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

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