首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >TIMMessage获取会话timMessage.getConversation()为null?

TIMMessage获取会话timMessage.getConversation()为null?

提问于 2019-11-23 14:54:37
回答 2关注 0查看 597
代码语言:javascript
复制
SDK版本2系列可以获取到,最新系列获取不到
TIMMessage msg = null;
String json = SDJsonUtil.object2Json(this);
byte[] bytes = json.getBytes(LiveConstant.DEFAULT_CHARSET);
TIMCustomElem elemCustom = new TIMCustomElem();
elemCustom.setData(bytes);
msg = new TIMMessage();
msg.addElement(elemCustom);

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档