when I switch to some pages in my application that I set up with InAppwebView, I get this error ( updateAcquireFence: Did not find frame ) the same project works without any problem on the device with android version 6, but on devices with android version 11 12 I get this error. Can you help, thanks in advance
InAppWebView(
onWebViewCreated: ((_controller) {
controller = _controller;
}),
initialUrlRequest: URLRequest(
url: Uri.parse('')),
initialOptions: InAppWebViewGroupOptions(
crossPlatform: InAppWebViewOptions(
javaScriptEnabled: true,
mediaPlaybackRequiresUserGesture: false,
supportZoom: false,
),
android: AndroidInAppWebViewOptions(
mixedContentMode: AndroidMixedContentMode
.MIXED_CONTENT_ALWAYS_ALLOW,
)),
onProgressChanged:
(InAppWebViewController controller, int progress) {
setState(() {
this.progress = progress / 100;
});
},
),
I already did the solutions provided here ("How to fix 'net::ERR_CLEARTEXT_NOT_PERMITTED' in flutter") to let the app show also http content and not https. It worked for that issue but not for this one.
Any further suggestions?
UPDATE: I SOLVED IT: the solutions provided are right but need another passage:
Inside:
controller = WebViewController()
..loadRequest(
Uri.parse('YOUR URL'),
);
you have to insert a property to allow the use of javascript:
controller = WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted)
..loadRequest(
Uri.parse('YOUR URL'),
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With