How can i monitor requests on WKWebview?
How can i monitor requests on WKWebview? I'v tried using NSURLprotocol (canInitWithRequest) but it won't monitor ajax requests (XHR), only navigation requests(document requests) Benzi Heler Finally I solved it Since I don't have control over the web view content, I injected to the WKWebview a java script that include a jQuery AJAX request listener. When the listener catches a request it sends the native app the request body in the method: webkit.messageHandlers.callbackHandler.postMessage(data); The native app catches the message in a delegate called: (void)userContentController: