title: PhoneGap/iOS, open ChildBrowser from .shouldStartLoadWithRequest()?
body: <p>I'm packaging a mobile website (over the network) in PhoneGap and would like to intercept links pointing to PDF's and open them using the <a href="https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/ChildBrowser" rel="nofollow">ChildBrowser</a> plugin. Is it <strong>1</strong>: possible to trigger <code>ChildBrowser</code>from native code (I've already determined which links to intercept) and <strong>2</strong>: is <code>AppDelegate.m</code>, <code>.shouldStartLoadWithRequest()</code> the right place to do it? And in that case: <strong>3</strong>: how to correctly call <code>ChildBrowser</code> from native code?</p>
  
  <p>I've tried this admittedly naive approach:</p>
  
  <pre><code>return [self exec:@"ChildBrowserCommand.showWebPage",
        [url absoluteString]];
  </code></pre>
  
  <p>but it only resulted in an error along the lines of <code>...'NSInvalidArgumentException', reason: '-[AppDelegate exec:]: unrecognized selector sent to instance</code>.</p>
  
  <p><em>(PS: I'm aware this approach isn't ideal practice, but this project is only priced for 2 days work)</em></p>