0

How would I go about adding an observer/listener for my WKWebView and detecting if the URL has changed? All of the preset WKWebView functions don't seem to detect window.location and window.hash changes, even though the URL is changing.

JDev
  • 5,168
  • 6
  • 40
  • 61
  • WKWebView has the didFinish method. – El Tomato Dec 19 '16 at 05:25
  • Right, but as mentioned, it doesn't always get fired if the content of the WKWebView is using window.location.hash methods. In my case, every URL change doesn't set off a single WKWebView method. – JDev Dec 19 '16 at 05:29

0 Answers0