Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isFeatureSupported plugin method not found #920

Closed
4 tasks done
MihaMarkic opened this issue Jul 19, 2021 · 6 comments
Closed
4 tasks done

isFeatureSupported plugin method not found #920

MihaMarkic opened this issue Jul 19, 2021 · 6 comments
Labels
bug Something isn't working stale

Comments

@MihaMarkic
Copy link

Environment

Technology Version
Flutter version 2.2.3
Plugin version 5.3.2
Android version 7.0

Device information:

Elephone P8 Mini

Description

I have a sample app (almost from documentation) and screen is just white.

Expected behavior:

App starts and shows flutter ui including webview. Note: it does work on few phones I've tried but not on this specific one.

Current behavior:

Displays just blank screen. From the call stack (logcat) below, it seems a problem with plugin communication.

Steps to reproduce

Sample app from documentation template

Images

Stacktrace/Logcat

E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: MissingPluginException(No implementation found for method isFeatureSupported on channel com.pichillilorenzo/flutter_inappwebview_android_webviewfeature)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156)

#1 AndroidWebViewFeature.isFeatureSupported (package:flutter_inappwebview/src/android/webview_feature.dart:257)

#2 main (package:de_bavarianapps_gshopapp/main.dart:16)

@MihaMarkic MihaMarkic added the bug Something isn't working label Jul 19, 2021
@github-actions
Copy link

👋 @MihaMarkic

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

@MihaMarkic
Copy link
Author

I'm debugging, so more info: constructor of ServiceWorkerManager has problems in my case. Will debug further to see what exactly.

@AndreTheHunter
Copy link

I'm having the same issue on iPhone simulator:

Future<void> onWebViewCreated(InAppWebViewController controller) async {
  if (await WebViewFeature.isFeatureSupported(WebViewFeature.WEB_MESSAGE_LISTENER)) {
    await controller.addWebMessageListener(WebMessageListener(
      jsObjectName: 'MyMessageChannel',
      allowedOriginRules: {'my.host.com'},
      onPostMessage: (message, sourceOrigin, isMainFrame, replyProxy) async {
        print('Received message');
      },
    ));
  }
  await controller.loadUrl( urlRequest: URLRequest( url: WebUri('https://inappwebview.dev/docs/webview/javascript/communication#web-message-listeners')));
}

I tried deleting the app, and running flutter clean.

flutter --version:

Flutter 3.10.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f92f44110e (5 days ago) • 2023-06-01 18:17:33 -0500
Engine • revision 2a3401c9bb
Tools • Dart 3.0.3 • DevTools 2.23.1

Using version: flutter_inappwebview: ^6.0.0-beta.23

Others are having similar issues:

  1. MissingPluginException: No implementation found for method loadUrl #209
  2. MissingPluginException No implementation found for method close #1551

@jaypathak9460
Copy link

jaypathak9460 commented Aug 8, 2023

I am facing same issue and tried all the above mention solution but did not help

flutter_inappwebview: ^6.0.0-beta.23
flutter --version

Flutter 3.10.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f468f3366c (4 weeks ago) • 2023-07-12 15:19:05 -0700
Engine • revision 857bd6b74c
Tools • Dart 2.18.4 • DevTools 2.15.0

Copy link

github-actions bot commented Oct 5, 2024

This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.

@github-actions github-actions bot added the stale label Oct 5, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

3 participants