I can't intercept all requests, I tried to use WKNavigationDelegate, schemeHandler and some repositories, but nothing is working. Is there any way to get them?
Asked
Active
Viewed 204 times
2
-
2WKWebView should be able to intercept all navigation events, but not "client-side" JS events within the page. The only way to intercept client-side events is to inject some JavaScript from native onto the page, and that injected code could report what you want back to native. Details depend on what those events you can't catch are, and what they do. For example if these events are messages, you could add your native listener to `webkit.messageHandlers` on JS side, and get them handled back to your WKScriptMessageHandler – timbre timbre Feb 03 '22 at 20:52