Now i\'m using UIWebView and with canInitWithRequest: of NSURLProtocol i can intercept all requests and do with it what I want.
UIWebView
canInitWithRequest:
NSURLProtocol
In
in iOS 11 WKWebView has come up with Custom Scheme Handler called WKURLSchemeHandler, which you can use to intercept the custom events. for more info check out this project. https://github.com/BKRApps/KRWebView