3 Replies
      Latest reply on Sep 5, 2019 5:45 AM by Bhavya
      hshah2811 Level 1 Level 1 (0 points)

        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.