Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FrameEvents(31583): updateAcquireFence: Did not find frame

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;

                      });
                    },
                  ),
like image 794
Yusuf Barulay Avatar asked Jan 31 '26 03:01

Yusuf Barulay


1 Answers

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'),
  );
like image 198
Vincenzo Oriti Avatar answered Feb 01 '26 17:02

Vincenzo Oriti