MixinNetwork / flutter-plugins

🧱 Flutter plugins used in Mixin Messenger.
MIT License
446 stars 192 forks source link

WebKitWebView returned by WebKitWebView::create signal was not created with the related WebKitWebView #376

Open patel0712 opened 2 weeks ago

patel0712 commented 2 weeks ago

In flutter desktop_webview_window package I m running my project on ubuntu 20 it works fine now I upgrade to 24 and there's issue like in web page there's Google logo when user clicks on it then the dummy site https://google_login_click.com/ loaded from web side and when I detect it I stop that dummy url to redirect and redirect to chrome for Google login but in ubuntu24 when I run project and click on logo it logs line like wwbkitwebview:: create signal not created or may be generated not remember exactly so how to fix this issue so project login works

`Launching lib/main.dart on Linux in debug mode... Building Linux application...

(Moon_HRM:36145): Gtk-WARNING **: 13:55:55.885: Error loading icon from file 'assets/images/app_icon_linux.png': Failed to open file “assets/images/app_icon_linux.png”: No such file or directory

(Moon_HRM:36145): Gdk-CRITICAL : 13:55:55.912: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed Debug service listening on ws://127.0.0.1:33103/nlRKA0YGpIc=/ws** Syncing files to device Linux... method call InitSystemTray SystemTray::set_system_tray_info title: , icon_path: /home/jeet/Documents/moon-hrm-flutter/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/system_tray_icon_mac.png, toolTip: (null) method call SetSystemTrayInfo SystemTray::set_system_tray_info title: (null), icon_path: (null), toolTip: Moon HRM method call SetSystemTrayInfo SystemTray::set_system_tray_info title: (null), icon_path: /home/jeet/Documents/moon-hrm-flutter/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/system_tray_icon_mac.png, toolTip: (null) method call CreateContextMenu value_to_menu_item type:label, label:Show value_to_menu_item type:checkbox, label:Open at Login value_to_menu_item type:label, label:Google Login value_to_menu_item type:label, label:Quit method call SetContextMenu [GETX] Instance "GetMaterialController" has been created [GETX] Instance "GetMaterialController" has been initialized [GETX] GOING TO ROUTE /dashboardScreen

(Moon_HRM:36145): Gdk-CRITICAL : 13:55:58.644: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed** [GETX] Instance "DashboardController" has been created flutter: CHECK==> "" [GETX] Instance "DashboardController" has been initialized

** (WebKitWebProcess:36244): WARNING : 13:55:59.958: The GStreamer FDK AAC plugin is missing, AAC playback is unlikely to work.** [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method InitSystemTray on channel flutter/system_tray/tray)

0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:320:7)

#1 SystemTray.initSystemTray (package:system_tray/src/tray.dart:47:18) #2 Utils.initSystemTray (package:moon_hrm/utils/utils.dart:463:7) #3 main (package:moon_hrm/main.dart:74:3) flutter: CHECK==> "hrm_flutter_platform=flutter; login_platform=linux; flutter_app_version=1.3; isTimerLocation=true; crisp-client%2Fsession%2F88be2798-9db6-4bef-b465-c8554e654ef7=session_c5e2b7b6-ca3e-48ea-ba00-7cc1d919fd0c" flutter: Pointer: address=0x0 **(Moon_HRM:36145): GLib-GObject-CRITICAL **: 13:58:26.444: ../../../gobject/gsignal.c:2685: instance '0x60b8a1987b40' has no handler with id '603'** ~WebviewWindow **** (Moon_HRM:36145): WARNING **: 14:03:00.248: WebKitWebView returned by WebKitWebView::create signal was not created with the related WebKitWebView ** (Moon_HRM:36145): WARNING **: 14:03:00.248: WebKitWebView returned by WebKitWebView::create signal was not created with the related WebKitWebView ** ` how to fix this issue.