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

Webview gone white in release mode #321

Closed
naeem-shah opened this issue Apr 11, 2020 · 4 comments
Closed

Webview gone white in release mode #321

naeem-shah opened this issue Apr 11, 2020 · 4 comments

Comments

@naeem-shah
Copy link

flutter_inappwebview:
    git:
      url: https://github.com/pichillilorenzo/flutter_inappwebview.git
      ref: master

I'am making a video call application using twilio implemented in web.
When I test Video call in debug mode it's working as well, but when I test it in release mode webview gone white noting show.

here is my code:


InAppWebView(
              initialUrl: 'https://iprouk-testing.azurewebsites.net/VideoCheckup/Lite?pu=$patientUserName&du=$doctorUserName&at=$authToken&loc=$location',
              initialOptions: InAppWebViewWidgetOptions(
                crossPlatform: InAppWebViewOptions(
                  mediaPlaybackRequiresUserGesture: false,
                  debuggingEnabled: true,
                  javaScriptEnabled: true,
                ),
              ),
              onWebViewCreated: (InAppWebViewController controller) {
                webView = controller;
              },
              onLoadStop: (InAppWebViewController controller, String url) {
                print(url);
              },
              androidOnPermissionRequest: (InAppWebViewController controller, String origin, List<String> resources) async {
                print(origin);
                print(resources);
                return PermissionRequestResponse(resources: resources, action: PermissionRequestResponseAction.GRANT);
              }
          ),
@pichillilorenzo
Copy link
Owner

With the new version 3.0.0, it should work! Let me know

@mdanilowski
Copy link

I am having similar trouble on android <=6.0 (API 21).
The WebView is just a white space.
Using version 3.1.0.

@iamar1k92
Copy link

Add internet permission in android/app/src/main/AndroidManifest.xml.

under the package name

This was referenced Jul 6, 2020
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 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants