starrtc-android-demo
starrtc-android-demo copied to clipboard
【已解决】安卓SDK 如何监听系统消息,看文档没有相关说明
D/starrtc_starSDK: (1133):StarSocket|收到系统消息:{"a":1} D/starrtc_starSDK: (1133):StarRtcCore|getControlMessage {"time":1577981063,"msgIndex":0,"type":0,"code":0}
如何监听?
之前发送系统和群组消息一直收不到,原因是没有按照消息格式来,但文档没有相关说明
已解决:
通过监听 IXHChatManagerListener
并且必须符合消息格式。
消息格式
{"fromId":"12306","targetId":"1","time":1578010006439,"msgIndex":0,"type":1,"code":0,"contentData":"7","atList":""}
系统发送消息:http://192.168.199.212:19922/pushSystemMsgToUsers?toUsers=12306&msg={%22fromId%22:%2212306%22,%22targetId%22:%221%22,%22time%22:1578010006439,%22msgIndex%22:0,%22type%22:1,%22code%22:0,%22contentData%22:%227%22,%22atList%22:%22%22}&digest=xxxx
你在说啥呢?先说清楚你干啥的好不?
------------------ 原始邮件 ------------------ 发件人: "showdown-zhou"<[email protected]>; 发送时间: 2020年1月17日(星期五) 上午10:59 收件人: "starrtc/starrtc-android-demo"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: Re: [starrtc/starrtc-android-demo] 【已解决】安卓SDK 如何监听系统消息,看文档没有相关说明 (#80)
我通过你说的发放也发不出消息,这是我的服务端服务没有全部启动
发送消息返回
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.