title: PhoneGap: Opening external URL's in Safari
body: <p>I've just upgraded to PhoneGap 1.6.1 and I can no longer get external URL's to open in Safari.</p>
  
  <p>Prior to this version I had patched AppDelegate.m as follows:</p>
  
  <pre><code>- (BOOL) webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType
  {
      NSURL *url = [request URL];
      if ([[url scheme] isEqualToString:@"http"]) {
          [[UIApplication sharedApplication] openURL:url];
          return NO;
      } else {
          return [self.viewController webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType];
      }
  }
  </code></pre>
  
  <p>I notice that a similar question has been asked before:
  <a href="https://stackoverflow.com/questions/9746260/phonegap-open-an-external-link-in-safari-not-the-apps-uiwebview">How can I open an external link in Safari not the app&#39;s UIWebView?</a></p>
  
  <p>But it looks to me like this answer no longer works on version 1.6.1.</p>
  
  <p>I've also tried setting OpenAllWhitelistURLsInWebView in Cordova.plist but neither setting gives me Safari.</p>
  
  <p>Thanks in advance.</p>