Comments (3)
@abellee 看起来没问题,这个类是哪里用的,方便的话可以把这个文件完整的代码提供下。
from im_flutter_sdk.
@dujiepeng 这个文件里剩余的部分 就全部都是相关的监听回调 没有别的代码了,用是在另外一个单例里 用户登陆之后调用,但如果用户已经登陆过了 再重新进入app的时候 会在runApp之前就被初始化 所以是不是这种情况下是有问题的
from im_flutter_sdk.
@dujiepeng 可能已经解决了,我在reassemble
里移除了所有监听,并在build
里重新监听,好像是正常了,但这也只能确保热重载的情况下 热重启还是会有问题,得再次保存一下触发热重载。但是 能否优化一下开发模式下的体验,这真的有点头大,我还得专门为开发模式下搞一套逻辑。
因为你demo里的都是在对应的界面里进行注册监听的 然后dispose
的时候取消监听(这里我也有点奇怪,貌似hot reload的时候是不会触发dispose
的),可能不太会有我这方面的问题,但如果用单例,那真的就各种莫名其妙了
from im_flutter_sdk.
Related Issues (20)
- im_flutter_sdk: ^3.8.3+4 无法使用多人音视频
- iOS 下无法编译的问题 HOT 2
- 无法在离线时收到好友请求 HOT 2
- 请教下在哪里监听即时推送的内容
- 获取msgTime报错 HOT 4
- 接收好友邀请回调不正常 HOT 5
- EMMessage的status变更是不是有问题? HOT 4
- 3.9.0+1没有startCallback方法 HOT 1
- 请问一下 EMOptions 如何更新 HOT 2
- 请问如何获取群组EMGroupOptions? HOT 1
- 调用登录相关SDK耗时太长 HOT 2
- 关于vivo 华为推送设置 HOT 1
- sqlite out of memory 导致APP闪退 HOT 2
- processGeneralRESTResponseError:: retCode: 408 response: timeout HOT 3
- 关于模拟器下的监听问题 HOT 1
- 上传群共享文件的进度回调在哪? HOT 2
- There is no HyphenateChat (= 3.9.3.1) in CocoaPods HOT 5
- Whether to support the web version HOT 2
- 登录提示null引用 HOT 2
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 im_flutter_sdk.