A
A
Alex2021-02-01 13:50:16
Java
Alex, 2021-02-01 13:50:16

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

1 answer(s)
D
Denis Zagaevsky, 2021-02-01
@zagayevskiy

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 question

Ask a Question

731 491 924 answers to any question