Android System WebView updated does not allow redirection

0

Good morning, everyone! I have an app that works with a webview and since the last update of Android System WebView, the links I have made in javascript stopped working, for example:

window.location='index.php';

the rest of the javascript functions work well, but it does not redirect, instead of just refreshing the page. And this is the code of my Activity

    mWebView.setWebChromeClient(getChromeClient());

    mWebView.setWebViewClient(new MyWebViewClient());
    mWebView.loadData("HTML", "text/html", "utf-8");

    WebSettings settings = mWebView.getSettings();
    settings.setJavaScriptEnabled(true);
    settings.setAppCacheEnabled(true);
    settings.setCacheMode(WebSettings.LOAD_DEFAULT);
    settings.setJavaScriptCanOpenWindowsAutomatically(true);
    settings.setSupportMultipleWindows(true);

Someone will know what the error is. Thank you very much !!

    
asked by Zitiapp Web 05.10.2017 в 22:09
source

0 answers