-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
onLoadResource Causing Loading Issues #38
Comments
Ok, I will check about that! Thanks |
@pichillilorenzo I'm having this issue on Android as well - it has different behaviour with the option enabled and disabled even if you have no actions - doesn't seem to affect every page shown - just some? |
@alsocalledchris the problem is here: https://github.com/pichillilorenzo/flutter_inappbrowser/blob/a1e3011087119570e16b8caa9176aacabe46924e/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebViewClient.java#L363 However, now the function returns |
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. |
I noticed that when the "useOnLoadResource" option is enabled on Android, the page fails to load completely in the InAppBrowser
I initially thought it was an issue with my onLoadResource function, but noticed this behavior is consistent with a clean project and the built-in "dummy" onLoadResource function.
floatingActionButton: FloatingActionButton( onPressed: () { inAppBrowser.open( url: "https://www.google.com", options: {"useOnLoadResource": false}); }, tooltip: 'Increment', child: Icon(Icons.add), ),
As you can see google.com is render with normal CSS as expected.
`
Now the only thing I changed was enabling onLoadResource, without even @Overriding the built in method.
floatingActionButton: FloatingActionButton(
onPressed: () {
inAppBrowser.open(
url: "https://www.google.com",
options: {"useOnLoadResource": true});
},
tooltip: 'Increment',
child: Icon(Icons.add),
),
`
Here you can see google.com doesn't render properly, with the wrong scaling and missing style on the top buttons.
I've tried downgrading my version, and the issue still exists, and is not present at all on iOS.
The text was updated successfully, but these errors were encountered: