title: PhoneGap/iOS - How to get Childbrowser to ignore links to Appstore?
body: <p>I have an app in the process of upgrading to the iOS5 SDK and Phonegap 1.0.0</p>
  
  <p>The Childbrowser plugin is working properly, but when a link to the iTunes app store is clicked - the link is opened in a Childbrowser window.  </p>
  
  <p>I would prefer it to open in Appstore directly, which is what happens if I do not use the ChildBrowser plugin.</p>
  
  <p>This is the appstore link (points to a submit a review page within the appstore)</p>
  
  <p><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=386470812&amp;pageNumber=0&amp;sortOrdering=1&amp;type=Purple+Software&amp;mt=8" rel="nofollow">http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=386470812&amp;pageNumber=0&amp;sortOrdering=1&amp;type=Purple+Software&amp;mt=8</a></p>
  
  <p>and this is how AppDelegate is modified</p>
  
  <p>AppDelegate.m, scroll way down and replace the following:</p>
  
  <pre><code>- (BOOL)webView:(UIWebView *)theWebView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
  {
  return [ super webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType ];
  }
  </code></pre>
  
  <p>with this:</p>
  
  <pre><code>- (BOOL)webView:(UIWebView *)theWebView shouldStartLoadWithRequest:
  (NSURLRequest *)request navigationType:
  (UIWebViewNavigationType)navigationType
  {
  NSURL *url = [request URL];
  if ([[url scheme] isEqualToString:@"gap"] || [url isFileURL]) {
  return [ super webView:theWebView shouldStartLoadWithRequest:request
  navigationType:navigationType ];
  }
  else {
  ChildBrowserViewController* childBrowser =
  [ [ ChildBrowserViewController alloc ] initWithScale:FALSE ];
  [super.viewController presentModalViewController:childBrowser
  animated:YES ];
  [childBrowser loadURL:[url description]];
  [childBrowser release];
  return NO;
  }
  }
  </code></pre>
  
  <p>I used the method outlined in this blogpost to get the Childbrowser up and running
  <a href="http://iphonedevlog.wordpress.com/2011/09/24/installing-childbrowser-into-xcode-4-with-phonegap-1-0-mac-os-x-snow-leopard/" rel="nofollow">http://iphonedevlog.wordpress.com/2011/09/24/installing-childbrowser-into-xcode-4-with-phonegap-1-0-mac-os-x-snow-leopard/</a></p>
  
  <p>Any thoughts on how to change this to produce the desired action?</p>
  
  <p>Many thanks..</p>