Answer the question
In order to leave comments, you need to log in
How to track URL changes in Android WebView?
The WebViewClient has two shouldOverrideUrlLoading events (old and new), onPageStarted and onPageFinished. Everywhere put down the function of updating the current URL. However, a problem was found out, for example, Avito uses apparently JS in the mobile version to load content or something else, and none of the above events work.
How to track URL changes in this case?
Answer the question
In order to leave comments, you need to log in
But if there is js loading, then the url will change? In my opinion, no, and therefore it is unlikely to track it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question