I'm having an Android app that relies heavily on shouldIntercept
on the WebView
ported to iOS ideally using WKWebView
. Is there a way to implement something similar to shouldIntercept
for all http and https calls?
Edit: the android webview will let me intercept all resources, images, videos, html, Javascript, etc. Is there some way to do that on ios?
Take a look at this github repository called as WKWebViewWithURLProtocol Casolorz. This library enables you to use NSURLProtocol to intercept your network requests using method swizzling.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With