Is there a way to get the FULL URL loaded by a WKWebView
for every request?
webView:didFinishNavigation:
Works only for mainFrame
navigations and does not provide a URL request parameter.
How do I get the FULL URL just like in UIWebViewDelegate
's
webViewDidFinishLoad:webView
...which gets invoked after any loading finishes and you can get the full request URL from the webView
parameter.
It's nice that WKWebView
's URL
property saves the work that needs to be done to extract a UI-friendly base URL, but it's a huge loss we can't get the full one!
I have tried using
webView:decidePolicyForNavigationAction:decisionHandler:
...but it produces different results for URLs compared to what a UIWebView
's request
property holds after finishing the load of a page.
WKNavigationDelegate
for this by looking at thewebView
s request for each request in something likewebView:didStartProvisionalNavigation:
? developer.apple.com/library/IOs/documentation/WebKit/Reference/…: – Popeye