Open kasperkowalski opened 4 months ago
👋 @kasperkowalski
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!
after some debugging I've noticed it's not the issue of version 6.0.0, it was working correctly on that version yesterday, i'm going to make some more checks what has changed
@kasperkowalski
Did you find the solution??
I had same issue when I upgraded to flutter_inappwebview 6.0.0 and upgrading flutter on May 22,2024. For temporary solution I have switched back to 5.8.0.
I'm not yet 100% sure but I think the issue was caused by bumping other dependency: webview_flutter_android
from version 3.16.1
to 3.16.2
it's changelog says for this version:
Bumps androidx.webkit:webkit from 1.7.0 to 1.10.0.
I'm not yet 100% sure but I think the issue was caused by bumping other dependency:
webview_flutter_android
from version3.16.1
to3.16.2
it's changelog says for this version: Bumps androidx.webkit:webkit from 1.7.0 to 1.10.0.
This also works for me. I had webview_flutter_android dependency in other packages, but it works when I fixed it to 3.16.1. webview_flutter_android 3.16.2 was released 21 hours ago. It's an issue that happened after that
I'm using the webview 6.0.0 in flutterflow. For me downgrading webview_flutter_android is not solving the issue. Any solution?
@Dkdeveloper24 maybe some other library in your stack is using never version of androidx.webkit:webkit, but first I would check if correct version is added to dependency overrides and all caches are clear.
dependency_overrides:
webview_flutter_android: 3.16.1
In my case, to avoid the error, webview_flutter_android: 3.16.1 In addition to doing this in /myproject/android/app/build.gradle dependencies { implementation("com.google.android.gms:play-services-ads:23.1.0") } part of "com.google.android.gms:play-services-ads:23.0.0" I had to downgrade to .
dependency_overrides: webview_flutter_android: 3.16.1
In my case, this worked for me. I hope to have the package stabilised soon.
Thanks a lot.
As per my observation, webview_flutter_android: 3.16.1; com.google.android.gms:play-services-ads:23.0.0 this two solved the issue.
Same issue, and even using dependency_overrides: webview_flutter_android: 3.16.1 doesn't fix. have deleted all ~/.pub-cache, same.
Any latest Solutions?
In my case, go back to 5.8.0 worked for me.
In my case switching the flutter sdk back to 3.19.6 stable version and dependency_overrides of webview_flutter_android to 3.16.1 worked.
dependency_overrides: webview_flutter_android: 3.16.1 worked for me thank you.
I had the same problem on InAppWebView plugin v.6.0.0, any update?
dependency_overrides:
is not work for me (;
dependency_overrides: webview_flutter_android: 3.16.1
I had the same problem with oppo phones and it worked
Same problem here, this solved it :
dependency_overrides:
webview_flutter_android: 3.16.1
Same problem here, this solved it :
dependency_overrides: webview_flutter_android: 3.16.1
Thanks this wokred for me on android 13
Same problem here, this solved it :
dependency_overrides: webview_flutter_android: 3.16.1
Thank you. It helped me, too.
I had the same issue and moving back to flutter_inappwebview: ^5.8.0 solved it.
Do anyone know the ticket in android regarding this issue?
Do anyone know the ticket in android regarding this issue?
Don’t think this is there issue
This library relies on the flutter_android_webview that is used by the flutter_webview and maintained by Google folks. If they changed something in there api this library(flutter_inappwebview) must fix this issue.
I have the same problem, any schedule to correct this?
same problem , i fond remove google_mobile_ads is ok . Please fix this, it's killing me
Try this, it works for me.
dependency_overrides:
webview_flutter_android: 3.16.1
dependency_overrides: webview_flutter_android: 3.16.1
worked for me.. thanks
had the same problem. this snippet fixed my code:
<meta-data android:name="android.webkit.WebView.EnableSafeBrowsing" android:value="true" /> <meta-data android:name="flutterEmbedding" android:value="2" />
dependency_overrides: webview_flutter_android: 3.16.1
This also worked for me!
HI,
this work dependency_overrides: webview_flutter_android: 3.16.1
but any prevision for a final solution
In my case, to avoid the error, webview_flutter_android: 3.16.1 In addition to doing this in /myproject/android/app/build.gradle dependencies { implementation("com.google.android.gms:play-services-ads:23.1.0") } part of "com.google.android.gms:play-services-ads:23.0.0" I had to downgrade to .
worked for me
Also add permissions follow this doc: https://inappwebview.dev/docs/intro
While waiting for the next release, you can hotfix by forcing androidx.webkit:webkit:1.8.0. Add this to android/build.gradle
allprojects {
/// TODO: remove. hotfix for flutter_inappwebview (using androidx.webkit:webkit:1.8.0)
/// webview_flutter_android: ^3.16.2 androidx.webkit:webkit ^1.9.0 remove SUPPRESS_ERROR_PAGE
configurations.all {
resolutionStrategy {
force 'androidx.webkit:webkit:1.8.0'
}
}
}
dependency_overrides: webview_flutter_android: 3.16.1
worked for me. thx.
While waiting for the next release, you can hotfix by forcing androidx.webkit:webkit:1.8.0. Add this to android/build.gradle
allprojects { /// TODO: remove. hotfix for flutter_inappwebview (using androidx.webkit:webkit:1.8.0) /// webview_flutter_android: ^3.16.2 androidx.webkit:webkit ^1.9.0 remove SUPPRESS_ERROR_PAGE configurations.all { resolutionStrategy { force 'androidx.webkit:webkit:1.8.0' } } }
worked for me, thanks.
any solutions mentioned here didnt work for me. any other solutions?
yes same issue for me also SUPPRESS_ERROR_PAGE
yes same issue for me also SUPPRESS_ERROR_PAGE
i solved the problem by doing this! https://sseymorr.github.io/flutter/errors/suppress-error-page/
allprojects {
configurations.all {
resolutionStrategy {
force 'androidx.webkit:webkit:1.8.0'
}
}
}
dependency_overrides:
webview_flutter_android: 3.16.1
hot fixing by forcing androidx.webkit:webkit:1.8.0 worked for me. Add this to android/build.gradle
allprojects {
configurations.all {
resolutionStrategy {
force 'androidx.webkit:webkit:1.8.0'
}
}
}
yes working for me, can you explain why this error came ?
yes working for me, can you explain why this error came ?
The error message indicates that there is a problem with the configuration or implementation of the flutter_inappwebview package. The "Unknown feature SUPPRESS_ERROR_PAGE" suggests that the package is trying to use a feature that is not available or not properly configured.
yes working for me, can you explain why this error came ?
I explained the reason here
dependency_overrides: webview_flutter_android: 3.16.1
This worked, Thank you
hot fixing by forcing androidx.webkit:webkit:1.8.0 worked for me. Add this to android/build.gradle
allprojects {
configurations.all { resolutionStrategy { force 'androidx.webkit:webkit:1.8.0' } }
}
This solution worked for me.
and this: https://github.com/pichillilorenzo/flutter_inappwebview/pull/2182#issuecomment-2236442823 for me.
Hello, resolved with the following method, watch the video to understand. Olá resolvido com o seguinte método veja o video para entender.
em pub dependency_overrides: webview_flutter_android: 3.16.1
em build.gradle android/app/build.gradle dependencies { implementation("com.google.android.gms:play-services-ads:23.1.0") } parte de "com.google.android.gms:play-services-ads:23.0.0" tive que fazer o downgrade para .
/// TODO: remove. hotfix for flutter_inappwebview (using androidx.webkit:webkit:1.8.0) /// webview_flutter_android: ^3.16.2 androidx.webkit:webkit ^1.9.0 remove SUPPRESS_ERROR_PAGE configurations.all { resolutionStrategy { force 'androidx.webkit:webkit:1.8.0' } }
For some reason, this was the only option that worked for me. Override didn't solve my problem. Thanks @phamconganh
dependency_overrides: webview_flutter_android: 3.16.1
it is worked for me THANKS
While waiting for the next release, you can hotfix by forcing androidx.webkit:webkit:1.8.0. Add this to android/build.gradle
allprojects { /// TODO: remove. hotfix for flutter_inappwebview (using androidx.webkit:webkit:1.8.0) /// webview_flutter_android: ^3.16.2 androidx.webkit:webkit ^1.9.0 remove SUPPRESS_ERROR_PAGE configurations.all { resolutionStrategy { force 'androidx.webkit:webkit:1.8.0' } } }
it is worked for me THANKS
While waiting for the next release, you can hotfix by forcing androidx.webkit:webkit:1.8.0. Add this to android/build.gradle
allprojects { /// TODO: remove. hotfix for flutter_inappwebview (using androidx.webkit:webkit:1.8.0) /// webview_flutter_android: ^3.16.2 androidx.webkit:webkit ^1.9.0 remove SUPPRESS_ERROR_PAGE configurations.all { resolutionStrategy { force 'androidx.webkit:webkit:1.8.0' } } }
it is worked for me THANKS
this solution , it is worked for me , thanks
Environment
Device information: | SM G950F (mobile) | android-arm64 | Android 9 (API 28) | | sdk gphone64 arm64 (mobile) | android-arm64 | Android 13 (API 33) (emulator) |
Description
Expected behavior: Widget with webview should be visible.
Current behavior: Widget with webview is not visible on Android after upgrade plugin to v.6.0.0, worked fine on v.5.8.0 and is working fine on iOS in both versions.
Steps to reproduce
final html = """
""";