Comments (22)
我这里没有复现这个问题,请检查控制台是否打印了错误日志
from fluttertencentimplugin.
没有错误 。只是 没有触发这个枚举,我是通过ios模拟器发送的消息 不知道有没有影响。github的demo 我也试过 确实没有触发 监听
from fluttertencentimplugin.
仅仅监听到了会话列表用到的 ListenerTypeEnum.RefreshConversation 刷新事件
from fluttertencentimplugin.
你是在IOS设备上测试的吗
from fluttertencentimplugin.
ios 模拟器 发送消息,这边安卓真机测试 接收消息
from fluttertencentimplugin.
这个功能之前是好使的。我试过
from fluttertencentimplugin.
因为我身边现在没有Android设备,请帮忙确认 IOS -> IOS 能否收到消息
from fluttertencentimplugin.
没事,但是 这个预计要明天中午才能回复你,因为我的ios真机调试 还存在问题 预计明天会跑通
from fluttertencentimplugin.
好的,如果这个问题存在,我将尽快修复!
from fluttertencentimplugin.
ok,感谢。
from fluttertencentimplugin.
android->android
ios->ios
ios->android
android->ios
都没有 ListenerTypeEnum.NewMessages的触发事件
from fluttertencentimplugin.
我测试
android->android
能收到 ListenerTypeEnum.NewMessages的触发事件
from fluttertencentimplugin.
@iyuhang 感谢提供帮助。
@yuefeng007 我也没能复现这个问题,请仔细检查代码逻辑,确认登录状态。
from fluttertencentimplugin.
就这么一段代码,暂时我没想到该去检查什么地方,除了前端还有别的地方可能影响吗
TencentImPlugin.addListener(listener);
listener(type, params) {
print('chat_detail 详情页面listener被触发 --start------------------');
print('listener被触发,消息类型为 ${type}');
print('chat_detail 详情页面listener被触发 --end---');
}
log日志
I/flutter (23726): chat_detail 详情页面listener被触发 --start------------------
I/flutter (23726):listener被触发,消息类型为 ListenerTypeEnum.Refresh
I/flutter (23726): chat_detail 详情页面listener被触发 --end---
I/flutter (23726): chat_detail 详情页面listener被触发 --start------------------
I/flutter (23726):listener被触发,消息类型为 ListenerTypeEnum.RefreshConversation
I/flutter (23726): chat_detail 详情页面listener被触发 --end---
from fluttertencentimplugin.
你测试的是群聊还是单聊?还是所有的都收不到?
from fluttertencentimplugin.
单聊。有没有可能是IM服务的原因,我下载了 im的demo。仍然是一样的现象。另外我是想方不方便在 demo中增加两个测试身份。开发人员能否 作为临时测试im服务使用。不然有的后端真的很坑
from fluttertencentimplugin.
Demo中使用的是我们个人的账号,后期会被移除,建议自行通过腾讯云IM申请appid,然后进行测试。
未收到消息的问题我会再次尝试是否复现
from fluttertencentimplugin.
我认为很大可能是我们后端服务有问题。感谢作者,,我自己想办法再测测吧
from fluttertencentimplugin.
终于定位到原因了,想想也是挺坑的。根本原因在后端那边更换了im服务,又设置了必须加好友双方才能互收消息。
from fluttertencentimplugin.
哈哈,解决了就好!
from fluttertencentimplugin.
老哥 我也遇到乐这个问题
//初始进入页面
收到的消息类型是》》》》》ListenerTypeEnum.Refresh
---------------------------------------
//手动刷新
收到的消息类型是》》》》》ListenerTypeEnum.RefreshConversation
页面是按照demo搭建的。
收不到新消息
from fluttertencentimplugin.
请尝试在Demo中更换至你的appid
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
- 安卓机在进行会话监听时闪退 HOT 23
- `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.