0

I have an Android app that uses WebView to access my website (https://m.readster.com) The issues is that my website uses a "location.reload(); " function in JavaScript when opening the app.

This works wonders on Android 26 and 27, but I have a Huawei with Android 22 that after the redirect, only shows a white page. If I remove the redirect script, it will display the page normally.

Is there any way to make it display the page after the Reload command?

EDIT I was calling

            public boolean shouldOverrideUrlLoading(WebView view, String url) {

I should have been calling

            public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {

0 Answers0