Comments (23)
生产环境还是Debug环境
from fluttertencentimplugin.
可以通过AS运行,然后在 CustomMessageEntity.java
147 行打一个Debug,我看看数据
from fluttertencentimplugin.
debug环境 稍等 我试试
from fluttertencentimplugin.
自定义消息没有传递Data字段吗?
from fluttertencentimplugin.
from fluttertencentimplugin.
此字段为必传的,如果不传递此字段,不仅android会出错,ios也会出错。故android没有进行非空判断:
this.data = new String(elem.getData());
from fluttertencentimplugin.
和会话监听没关系,你自定义消息没数据,内部收到会话后会获取最后一条消息,进而进行解析自定义消息。
from fluttertencentimplugin.
堆栈信息是由于你收到了新会话事件,然后解析最后一条消息时出错,请确保 CustomMessage 中的 data 属性不为空。
from fluttertencentimplugin.
可是我的监听中 还没有做相关处理 而且 我还没有做自定义消息发送 = =
这是需要在监听中我本身就需要对自定义消息先做判断吗
from fluttertencentimplugin.
不需要,是你消息中本来就存在一条自定义消息(之前发送的或通过其他平台发送的)
from fluttertencentimplugin.
那我现在是需要在会话监听里面判断 还是在发送时就要判断
from fluttertencentimplugin.
发送时,自定义消息的data属性不能为空,如果要删除本次会话,请删关闭监听器,然后手动调用删除会话接口,然后可以再打开监听器。
from fluttertencentimplugin.
需要查看具体的消息内容,请使用 AS启动,在 CustomMessageNode 中的26行打一个debug
from fluttertencentimplugin.
刚询问了我的同事 因为 自定义消息是后台发送的 data字段 他没有用到 也就说可能真的会为空 --
from fluttertencentimplugin.
更新最新Ref,内容作了兼容判断,�不过自定义消息的data依旧不建议传递空数据,如果此内容为空,那就代表此消息无效。
from fluttertencentimplugin.
好的 谢谢。因为我们这边 服务端同事用的字段是ext 没用data字段
from fluttertencentimplugin.
已经可以了 谢谢大佬~
from fluttertencentimplugin.
Unhandled Exception: LateInitializationError: Field 'data' has not been initialized.
使用自定义消息的时候 报错
因为data 传入的是空字符串
安卓端
from fluttertencentimplugin.
from fluttertencentimplugin.
好的,明天修复
from fluttertencentimplugin.
好的 谢谢大佬
from fluttertencentimplugin.
想问下我这边 自定义消息发送时 是成功的 但是监听收到时 data和ext 这两个字段都是null 数据是已经存进去了 但是就是监听返回时没有值
from fluttertencentimplugin.
拉取最新ref即可
Unhandled Exception: LateInitializationError: Field 'data' has not been initialized. 使用自定义消息的时候 报错 因为data 传入的是空字符串 安卓端
拉取最新即可
from fluttertencentimplugin.
Related Issues (20)
- android release包闪退 HOT 8
- 请问下新版的群简介怎么拿到,之前的版本会话列表中可以取到群简介 HOT 1
- 大佬能不能顺便也支持一下web HOT 2
- android createGroup 返回的groupID有非法字符 " HOT 2
- ios setGroupInfo必须指定全部字段,否则其他字段会被清空(android没这个问题) HOT 4
- 似乎是跟flutter_sound插件的依赖版本起冲突,请问该如何解决? HOT 4
- ios编译报错 HOT 1
- 请问直接关闭App的时候有办法让IM执行退出登录操作吗? HOT 1
- 如何更新本地的IM用户的信息呢? HOT 5
- Swift里的JsonUtil无法解析特殊字符 HOT 6
- flutter2.5.3 ios运行模拟器报错 HOT 16
- 可以支持下 insertC2CMessageToLocalStorage 这个方法嘛? HOT 2
- 发送失败后,调用resendMessage接口,并不能改变消息的发送状态status(依旧为MessageStatusEnum.SendFail) HOT 1
- ios 调用sendMessage 时 真机闪退 HOT 11
- 消息发送是否支持CloudCustomData HOT 9
- 麻烦添加一下x64支持 HOT 1
- `TencentImPlugin.setSelfInfo` 不生效或失败, 导致该用户聊天时获取到的`faceUrl`为null 或 不更新是旧头像, 但是试了腾讯官方的demo, 没有该问题 HOT 6
- DeviceToken
- 通过ref引入编译失败 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluttertencentimplugin.