[안드로이드] shouldOverrideUrlLoading가 호출되지 않는 문제
WebView에서 shouldOverrideUrlLoading가.. 호출이 잘 안되네요.
shouldOverrideUrlLoading가 호출되지 않는 이유에는 몇 가지가 있는데 POST 데이터가 전달되면 안불리네요.
loadURL에 의해 웹뷰가 처음 실행될 때도 안불리구요.
아래의 글이 좀 도움이 될 것 같아 링크 남겨 봅니다.
https://medium.com/@madmuc/intercept-all-network-traffic-in-webkit-on-android-9c56c9262c85
Intercept all network traffic in WebKit on Android
A complete solution to run your Web application offline in WebView
medium.com
javascript를 추가해서.. 안드로이드쪽과.. 연동?할 수도 있네요.
https://stackoverflow.com/questions/39979950/webviewclient-not-calling-shouldoverrideurlloading
WebViewClient not calling shouldOverrideUrlLoading
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 from the WebViewClient by saving the ur...
stackoverflow.com
댓글 영역