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

stuck in loading #2179

Closed
2 tasks done
MagarKJ opened this issue Jun 13, 2024 · 8 comments
Closed
2 tasks done

stuck in loading #2179

MagarKJ opened this issue Jun 13, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@MagarKJ
Copy link

MagarKJ commented Jun 13, 2024

  • I have read the Getting Started section
  • I have already searched for the same problem

Environment

Technology Version
Flutter version
Plugin version
Android version
iOS version
macOS version
Xcode version
Google Chrome version

Device information:

Description

Expected behavior:

Current behavior:

Steps to reproduce

  1. This
  2. Than that
  3. Then

Images

Screenshot (92)
Screenshot (89)
Screenshot (90)
Screenshot (91)

Stacktrace/Logcat

E/flutter (26747): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/flutter (26747): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/flutter (26747): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/flutter (26747): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/flutter (26747): at android.os.Handler.handleCallback(Handler.java:942)
E/flutter (26747): at android.os.Handler.dispatchMessage(Handler.java:99)
E/flutter (26747): at android.os.Looper.loopOnce(Looper.java:201)
E/flutter (26747): at android.os.Looper.loop(Looper.java:288)
E/flutter (26747): at android.app.ActivityThread.main(ActivityThread.java:7872)
E/flutter (26747): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (26747): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/flutter (26747): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/flutter (26747): )
E/flutter (26747): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
E/flutter (26747): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
E/flutter (26747):
E/flutter (26747): #2 ExpensiveAndroidViewController._sendCreateMessage (package:flutter/src/services/platform_views.dart:1099:5)
E/flutter (26747):
E/flutter (26747): #3 AndroidViewController.create (package:flutter/src/services/platform_views.dart:822:5)
E/flutter (26747):
E/flutter (26747):

@MagarKJ MagarKJ added the bug Something isn't working label Jun 13, 2024
Copy link

👋 @MagarKJ

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!

@samuel-vongs
Copy link

I am having the same issue, please help, i have search for solution but to no avail

@EArminjon
Copy link
Contributor

(please provide complete log and minimal reproductible example)

@samuel-vongs
Copy link

Restarted application in 3,005ms.
D/InAppWebView(12260): Using InAppWebViewClientCompat implementation
W/cr_WebSettings(12260): setForceDark() is a no-op in an app with targetSdkVersion>=T
W/cr_SupportWebSettings(12260): setForceDarkBehavior() is a no-op in an app with targetSdkVersion>=T
E/MethodChannel#flutter/platform_views(12260): Failed to handle method call
E/MethodChannel#flutter/platform_views(12260): java.lang.RuntimeException: Unknown feature SUPPRESS_ERROR_PAGE
E/MethodChannel#flutter/platform_views(12260): at androidx.webkit.internal.WebViewFeatureInternal.isSupported(WebViewFeatureInternal.java:649)
E/MethodChannel#flutter/platform_views(12260): at androidx.webkit.internal.WebViewFeatureInternal.isSupported(WebViewFeatureInternal.java:618)
E/MethodChannel#flutter/platform_views(12260): at androidx.webkit.WebViewFeature.isFeatureSupported(WebViewFeature.java:611)
E/MethodChannel#flutter/platform_views(12260): at com.pichillilorenzo.flutter_inappwebview_android.webview.in_app_webview.InAppWebView.prepare(InAppWebView.java:436)
E/MethodChannel#flutter/platform_views(12260): at com.pichillilorenzo.flutter_inappwebview_android.webview.in_app_webview.FlutterWebView.(FlutterWebView.java:82)
E/MethodChannel#flutter/platform_views(12260): at com.pichillilorenzo.flutter_inappwebview_android.webview.FlutterWebViewFactory.create(FlutterWebViewFactory.java:67)
E/MethodChannel#flutter/platform_views(12260): at io.flutter.plugin.platform.PlatformViewsController.createPlatformView(PlatformViewsController.java:523)
E/MethodChannel#flutter/platform_views(12260): at io.flutter.plugin.platform.PlatformViewsController$1.createForPlatformViewLayer(PlatformViewsController.java:168)
E/MethodChannel#flutter/platform_views(12260): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:105)
E/MethodChannel#flutter/platform_views(12260): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:55)
E/MethodChannel#flutter/platform_views(12260): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/MethodChannel#flutter/platform_views(12260): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/MethodChannel#flutter/platform_views(12260): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/MethodChannel#flutter/platform_views(12260): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/MethodChannel#flutter/platform_views(12260): at android.os.Handler.handleCallback(Handler.java:942)
E/MethodChannel#flutter/platform_views(12260): at android.os.Handler.dispatchMessage(Handler.java:99)
E/MethodChannel#flutter/platform_views(12260): at android.os.Looper.loopOnce(Looper.java:201)
E/MethodChannel#flutter/platform_views(12260): at android.os.Looper.loop(Looper.java:288)
E/MethodChannel#flutter/platform_views(12260): at android.app.ActivityThread.main(ActivityThread.java:7872)
E/MethodChannel#flutter/platform_views(12260): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter/platform_views(12260): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/MethodChannel#flutter/platform_views(12260): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/flutter (12260): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Unknown feature SUPPRESS_ERROR_PAGE, null, java.lang.RuntimeException: Unknown feature SUPPRESS_ERROR_PAGE
E/flutter (12260): at androidx.webkit.internal.WebViewFeatureInternal.isSupported(WebViewFeatureInternal.java:649)
E/flutter (12260): at androidx.webkit.internal.WebViewFeatureInternal.isSupported(WebViewFeatureInternal.java:618)
E/flutter (12260): at androidx.webkit.WebViewFeature.isFeatureSupported(WebViewFeature.java:611)
E/flutter (12260): at com.pichillilorenzo.flutter_inappwebview_android.webview.in_app_webview.InAppWebView.prepare(InAppWebView.java:436)
E/flutter (12260): at com.pichillilorenzo.flutter_inappwebview_android.webview.in_app_webview.FlutterWebView.(FlutterWebView.java:82)
E/flutter (12260): at com.pichillilorenzo.flutter_inappwebview_android.webview.FlutterWebViewFactory.create(FlutterWebViewFactory.java:67)
E/flutter (12260): at io.flutter.plugin.platform.PlatformViewsController.createPlatformView(PlatformViewsController.java:523)
E/flutter (12260): at io.flutter.plugin.platform.PlatformViewsController$1.createForPlatformViewLayer(PlatformViewsController.java:168)
E/flutter (12260): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:105)
E/flutter (12260): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:55)
E/flutter (12260): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/flutter (12260): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/flutter (12260): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/flutter (12260): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/flutter (12260): at android.os.Handler.handleCallback(Handler.java:942)
E/flutter (12260): at android.os.Handler.dispatchMessage(Handler.java:99)
E/flutter (12260): at android.os.Looper.loopOnce(Looper.java:201)
E/flutter (12260): at android.os.Looper.loop(Looper.java:288)
E/flutter (12260): at android.app.ActivityThread.main(ActivityThread.java:7872)
E/flutter (12260): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (12260): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/flutter (12260): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/flutter (12260): )
E/flutter (12260): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)
E/flutter (12260): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
E/flutter (12260):
E/flutter (12260): #2 ExpensiveAndroidViewController._sendCreateMessage (package:flutter/src/services/platform_views.dart:1099:5)
E/flutter (12260):
E/flutter (12260): #3 AndroidViewController.create (package:flutter/src/services/platform_views.dart:822:5)
E/flutter (12260):
E/flutter (12260):
D/EGL_emulation(12260): app_time_stats: avg=28408.58ms min=28408.58ms max=28408.58ms count=1

@MagarKJ
Copy link
Author

MagarKJ commented Jun 20, 2024

go to your pubspec.lock file and search this package webview_flutter_android: and change its version to version: "3.16.1"
this fixed my issue

@TheWalkingDead2
Copy link

TheWalkingDead2 commented Aug 6, 2024

I would like to report that I encountered the same Unknown feature SUPPRESS_ERROR_PAGE error with the flutter_inappwebview plugin as described in #2179. After following the suggestion in the discussion to change the version of webview_flutter_android to 3.16.1 in the pubspec.lock, the issue was resolved. This seems to be an effective workaround for now.

@adityakumars064
Copy link

Adding webview_flutter_android: 3.16.1 in dependency_overrides in pubspec.yaml file will work

dependency_overrides:
webview_flutter_android: 3.16.1

@MagarKJ MagarKJ closed this as completed Nov 6, 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 Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants