MixinNetwork / MixinNetwork/flutter-plugins

Application crashes when trying to open webview-windows in flutter desktop

Open
#309 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
512
Forks
292
Avg merge
15h 8m
Merged PRs (30d)
7

Description

**Using desktop_multi_window package crated a new window from a flutter windows application
and when created and opened new window with this browser component it fails with this error

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method isWebviewAvailable on channel webview_window)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:313:7)

#1 WebviewWindow.isWebviewAvailable (package:desktop_webview_window/desktop_webview_window.dart:56:19)
**

_with another plugin also same issue

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method initialize on channel io.jns.webview.win)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:313:7)

https://github.com/jnschulze/flutter-webview-windows/issues/1 MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:518:43)

https://github.com/jnschulze/flutter-webview-windows/issues/2 WebviewController.initialize (package:webview_windows/src/webview.dart:172:11)_

Any thing i missed or any suggestions.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash with desktop_multi_window and desktop_webview_window in a Flutter Windows application. Inspect desktop_webview_window/lib/desktop_webview_window.dart at WebviewWindow.isWebviewAvailable and compare the reported webview_windows initialization path. Done means the new window can invoke the webview plugin without a MissingPluginException.

Written by the indexing model from the issue text.

Assessment

Tech stack
flutter
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.