注册

android 消息监听,来了群聊和私聊该如何监听。

android该怎么去实现群聊和私聊来了消息的监听,并且红点显示,方法是哪个。新手集成环信,望大神告知。
已邀请:
消息监听是想要在哪里接收消息就在哪里去做消息监听,也可以做全局的消息监听在初始化之后去做application中,如图是全局的消息监听示例。关于小红点环信做的是控件的形式,调用获未读消息,参考文档:3.X方法http://docs.easemob.com/im/200androidclientintegration/50singlechat#获取未读消息数量
2.x方法:
http://docs.easemob.com/start/200androidcleintintegration/50singlechat#获取未读消息数量
在跳转聊天界面之后去做未读消息数量清零;
3.x
http://docs.easemob.com/im/200androidclientintegration/50singlechat#未读消息数清零
2.x
http://docs.easemob.com/start/200androidcleintintegration/50singlechat#未读消息数清零
 
 

要回复问题请先登录注册