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

The InAppWebView display empty #57

Open
yhdjy025 opened this issue Mar 11, 2019 · 8 comments
Open

The InAppWebView display empty #57

yhdjy025 opened this issue Mar 11, 2019 · 8 comments

Comments

@yhdjy025
Copy link

yhdjy025 commented Mar 11, 2019

I've use the InAppWebView in my page,,the device show empty on the screen,but I the website is loaded from the log, I click the empty page,I can see the log that the website is jump to another url. and it load success.but the screen is display none too

My code is:

Widget _content(context) {
    return Container(
      width: 300,
      height: 500,
      child: InAppWebView(
          initialUrl: "https://baidu.com/",
          initialHeaders: {},
          initialOptions: {},
          onWebViewCreated: (InAppWebViewController controller) {
            webView = controller;
          },
          onLoadStart: (InAppWebViewController controller, String url) {
            print("started $url");
            setState(() {
              this.url = url;
            });
          },
          onProgressChanged: (InAppWebViewController controller, int progress) {
            print('---------progress ' + (progress / 100).toString());
            setState(() {
              this.progress = progress / 100;
            });
          }),
    );
  }

企业微信截图_15523056336748

@yhdjy025
Copy link
Author

I know the website has loaded, but it not show, Please tell me how to solve it thanks!

@danielcosta27
Copy link

you can implement the onLoadError callback in order to see what's going on:

onLoadError: (InAppWebViewController controller, String url, int code, String message) { print("url $url"); print("code $code"); print("message $message"); },

@pichillilorenzo
Copy link
Owner

@yhdjy025 I cannot reproduce your problem! Do you have the latest version (1.0.1) of my plugin?? However, using my example and changing initialUrl: https://github.com/pichillilorenzo/flutter_inappbrowser/blob/f3f0876f285c46b7e4357a03a978f6b4db2bb8fa/example/lib/inline_example.screen.dart#L43
with "https://baidu.com/", it works as expected on my Android phone:

rsz_photo_2019-03-14_00-22-19

@yhdjy025
Copy link
Author

Maybe the simulator incompatible,I use another simulator is ok

@phuchuynhStrong
Copy link

Some website might need you to enable domStorage

@virskor
Copy link

virskor commented Oct 30, 2019

my phone using nexus 5x android 8.1.0 all show empty page when using initial local file. but ios is ok!

@virskor
Copy link

virskor commented Oct 30, 2019

E/eglCodecCommon(15021): glUtilsParamSize: unknow param 0x000088ef
E/eglCodecCommon(15021): glUtilsParamSize: unknow param 0x000088ef
D/eglCodecCommon(15021): setVertexArrayObject: set vao to 50 (50) 0 0
D/EGL_emulation(15021): eglMakeCurrent: 0xebb353a0: ver 3 0 (tinfo 0xdb2c15e0)
D/eglCodecCommon(15021): setVertexArrayObject: set vao to 4 (4) 1 29

Failed to get fallback IMM with expected displayId=55 actual IMM#displayId=0 view=com.pichillilorenzo.flutter_inappbrowser.InAppWebView.InAppWebView

@huangweigan
Copy link

Same issues

This was referenced Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants