WebViewClient not calling shouldOverrideUrlLoading

后端 未结 10 2350
逝去的感伤
逝去的感伤 2020-12-15 18:44

The problem is rather simple. In the application we want to keep track of the current url being displayed. For that we use shouldOverrideUrlLoading callback fr

10条回答
  •  情歌与酒
    2020-12-15 19:33

    after stumbling on this problem and searching for solutions, I've found the one that worked perfectly for me

    https://stackoverflow.com/a/56395424/10506087

     override fun doUpdateVisitedHistory(view: WebView?, url: String?, isReload: Boolean) {
        // your code here
        super.doUpdateVisitedHistory(view, url, isReload)
    }
    

提交回复
热议问题