pichillilorenzo / flutter_inappwebview

A Flutter plugin that allows you to add an inline webview, to use a headless webview, and to open an in-app browser window.
https://inappwebview.dev
Apache License 2.0
3.26k stars 1.6k forks source link

Blank window when opening a specific page. #797

Closed JsonLinesCode closed 3 years ago

JsonLinesCode commented 3 years ago

Environment

Technology Version
Flutter version 2.0.4
Plugin version 5.3.2
iOS version 14.4
Xcode version 12.4

Device information:

Description

Expected behavior: This page should load. Current behavior: A blank page is opened instead and loading is stuck to 50%.

Steps to reproduce

InAppWebView(
            initialUrlRequest: URLRequest(
                url: Uri.parse(
                    "https://ent.iledefrance.fr/auth/login?callback=https%3A%2F%2Fent.iledefrance.fr%2F")),
            onProgressChanged:
                (InAppWebViewController controller, int progress) {
              print(progress);
            },
 ),

Shell output

50
90
50

Images

image

github-actions[bot] commented 3 years ago

👋 @ModernChocolate

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!

pichillilorenzo commented 3 years ago

If you check on Safari dev tools, it seems that there are some JavaScript errors and, for some reason, the page keeps refreshing itself. I don't know what is going on on that website. These are the errors you see from the console logs of Safari dev tools: Schermata 2021-04-11 alle 01 04 20

It seems there is something wrong with the JavaScript of the webpage itself or something from the server-side. It could be also a bug of WKWebView native class of iOS. Try to search online on Google about: xmlhttprequest cannot load due to access control checks. Unfortunately, I don't know how to help you more than this.

JsonLinesCode commented 3 years ago

I'll check, but the Webview is correctly loaded on Android.

pichillilorenzo commented 3 years ago

Yes I know but it could be a problem specific to iOS only. Android is not iOS, so they have 2 different implementation of the native WebView, just like when you compare Chrome and Safari, they are not the same.

no-response[bot] commented 3 years ago

This issue has been automatically closed because it was marked as "answered", and there wasn't any recent activity on this issue.

github-actions[bot] commented 1 week ago

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.