SFSafariViewControllerDelegate Intercept URL Redirect

For UIWebView URL can be intercepted by API


-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType


and in WKWebView this can be done using API


func webView(webView: WKWebView, decidePolicyForNavigationAction navigationAction: WKNavigationAction, decisionHandler: (WKNavigationActionPolicy) -> Void)


My App has some logic on what URL is being redirected hence it is MUST for my app to intercept URLs.


What is the way in new iOS 9 Safari View Controller to intercept the URL redirects. As far as i know there are only 2 delegates available and which can not be used to intercept URLs.

Replies

hey, did you manage to sort this, im looking into the same thing? cheers

Did you found anything on this?

Hey buddy, did you find any solution for this? I have the same issue.