flutter-webview-windows icon indicating copy to clipboard operation
flutter-webview-windows copied to clipboard

30 minutes after entering the background (minimized),There is no response when the interface is clicked

Open NickYoung-max opened this issue 2 years ago • 10 comments

[√] 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).

NickYoung-max avatar Nov 02 '22 04:11 NickYoung-max

my webview_windows version is 0.2.0

NickYoung-max avatar Nov 02 '22 04:11 NickYoung-max

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.

lycstar avatar Nov 03 '22 03:11 lycstar

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.

NickYoung-max avatar Nov 03 '22 04:11 NickYoung-max

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.

NickYoung-max avatar Nov 14 '22 02:11 NickYoung-max

Great, thank you for your reply @NickYoung-max

lycstar avatar Nov 14 '22 02:11 lycstar

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.

NickYoung-max avatar Nov 14 '22 02:11 NickYoung-max

How to suspend and enable the web controller

pufaqi avatar May 18 '23 08:05 pufaqi

How to suspend and enable the web controller

instance of web controller has implement method. image

NickYoung-max avatar Jun 01 '23 06:06 NickYoung-max

如何暂停和启用网络控制器

Web 控制器的实例具有实现方法。 图像

thank you very much indeed

pufaqi avatar Jun 07 '23 03:06 pufaqi

如何暂停和启用网络控制器

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

903531306 avatar Nov 24 '23 02:11 903531306