Results 7 comments of 张昕伟

参考这文章:https://blog.csdn.net/klo220/article/details/83380657 修改 ./node_modules/react-native-wechat/android/build.gradle

SDK 版本的问题, 在 `FloatWindowsService` 中 把 `params.type = WindowManager.LayoutParams.TYPE_SYSTEM_ALERT; ` 替换为 ``` if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){//6.0 params.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; }else { params.type = WindowManager.LayoutParams.TYPE_SYSTEM_ALERT; } ```

之前发送系统和群组消息一直收不到,原因是没有按照消息格式来,但文档没有相关说明 已解决: 通过监听 `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

https://moonshot.feishu.cn/docx/RnkWdeFo8oQabzxYFVwcNg1Mn9g 文档地址

> 好的,请加群私聊我谢谢 QQ 上已经私聊你了, 辛苦关注~