flutter-webview-windows
flutter-webview-windows copied to clipboard
30 minutes after entering the background (minimized),There is no response when the interface is clicked
[√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [版本 10.0.19044.2130], locale zh-CN) [√] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.6) [√] Android Studio (version 2021.2) [√] Connected device (3 available) [√] HTTP Host Availability
when I init a webController and open a webview,then minimized the app. After 30 minutes,open it , click the tabbar button ,the interface seems was frozensed, and the response takes several minutes(the code run ,but interface not changed).
my webview_windows version is 0.2.0
I found similar,maybe the webview2 runtime process be killed,You can open the Task Manager and kill the webview2 runtime process, It will reappear.
I found similar,maybe the webview2 runtime process be killed,You can open the Task Manager and kill the webview2 runtime process, It will reappear.
my webview is runing ok ,but the dart code interface can't be clicked,it's that about the dart UI Runner hand up?
as you mention ,I open the Task Manager and kill the webview2 runtime process,the webview is kill but the dart code interface still runing well.
I found similar,maybe the webview2 runtime process be killed,You can open the Task Manager and kill the webview2 runtime process, It will reappear.
my webview is runing ok ,but the dart code interface can't be clicked,it's that about the dart UI Runner hand up?
as you mention ,I open the Task Manager and kill the webview2 runtime process,the webview is kill but the dart code interface still runing well.
before I minimized the app,I stop and suspend the web controller(when open from taskbar,resume it), that solved my problem.
Great, thank you for your reply @NickYoung-max
even though I minimized the app for 10s,the flutter interface still being frozened,I finally found that is the web controller initialize() method cause the problem. I guess the _eventChannel.receiveBroadcastStream().listen mehtod take too much source of the process,so before I minimized the app,I stop and suspend the web controller(when open from taskbar,resume it), that solved my problem.
How to suspend and enable the web controller
How to suspend and enable the web controller
instance of web controller has implement method.
如何暂停和启用网络控制器
Web 控制器的实例具有实现方法。
thank you very much indeed
如何暂停和启用网络控制器
Web控制器的实例具有实现方法。
确实非常感谢
Why do I pause in the background for a while after using suspend, and when I come back, I use resume, which sometimes gets stuck on reload or the webview disappears and cannot be loaded? What is the problem
System: windows11
Webview_ Windows: ^ 0.3.0