The problem that WebView cannot return after jumping to a third-party webpage

  I use Tencent’s X5WebView, but it is handled in the same way as native WebView.

Recently, the company wants to package an APP that uses H5 completely, and there is an operation to jump to a third-party page. After jumping over, pressing the back button of the phone will not return, and repeat the third-party application page.

Solution:

 
 
webView.setWebViewClient(new WebViewClient() {

    @Override
    public boolean shouldOverrideUrlLoading(WebView webView, String s) {
       
        return false;
        
    }
});

Guess you like

Origin blog.csdn.net/u011288271/article/details/80693893