title: InAppBrowser not being called in Phonegap 3.1.0
body: <p>I've grabbed the latest version of phonegap from NPM and installed it.  I created a new project and added the InAppBrowser plugin per the docs on the PhoneGap <a href="http://docs.phonegap.com/en/3.0.0/guide_cli_index.md.html#The%20Command-line%20Interface" rel="nofollow"></a>.  I then make a JavaScript call from my webapp but I never see the alert I have coded below nor do I see it with any breakpoints I have setup in Xcode for the plugin. </p>
  
  <p>Here's the code for the JS:</p>
  
  <pre><code>var pdfViewer = {
      loadPdf: function(record, successCallback, errorCallback) {
          var filename = record.get('building') + "-" + record.get('floor') + ".pdf";
          var url = People.app.srvcUrl + Global.floorPlanUri + filename + "?access_token=" + People.app.bearerToken.access_token;
          if (Ext.os.is.iOS) {
          //    cordova.exec(successCallback, errorCallback, "PDFViewer", "loadRemotePdf", [url, filename]);
  
  
              var ref = window.open(url, '_blank', 'location=yes');
              ref.addEventListener('loadstart', function() { alert("You made it!"); });
          } else {
              window.open(url, '_system', 'location=yes');
          }
      }
  };
  </code></pre>
  
  <p>What happens is that the url is launched to show a PDF on top of my existing app with no alert and no location/close button.  Any ideas why InAppBrowser is not being used?  I need to have it show in a window with a close button.</p>
  
  <p>Here's the output I see in Xcode when I run the app:</p>
  
  <pre><code>2013-10-23 09:39:02.380 mobile-xxx-ios[3302:60b] Multi-tasking -&gt; Device: YES, App: YES
  2013-10-23 09:39:02.426 mobile-xxx-ios[3302:60b] Unlimited access to network resources
  2013-10-23 09:39:02.564 mobile-xxx-ios[3302:60b] [CDVTimer][phonedialer] 0.477016ms
  2013-10-23 09:39:02.567 mobile-xxx-ios[3302:60b] [CDVTimer][sms] 0.230014ms
  2013-10-23 09:39:02.569 mobile-xxx-ios[3302:60b] [CDVTimer][emailcomposer] 0.252008ms
  2013-10-23 09:39:02.571 mobile-xxx-ios[3302:60b] [CDVTimer][TotalPluginStartup] 7.416010ms
  2013-10-23 09:39:02.957 mobile-xxx-ios[3302:60b] Resetting plugins due to page load.
  2013-10-23 09:39:05.789 mobile-xxx-ios[3302:60b] Finished load of: file:///var/mobile/Applications/5916FB20-FDEC-40A7-AE77-9EF14AF30585/mobile-xxx-ios.app/www/index.html
  2013-10-23 09:39:18.168 mobile-xxx-ios[3302:60b] Resetting plugins due to page load.
  2013-10-23 09:39:18.680 mobile-xxx-ios[3302:60b] Finished load of: https://pdfs.xxx.com/noauth/plans/x-1.pdf
  FAILED to create agar for HelveticaLTMM.
  FAILED to create agar for TimesLTMM.
  </code></pre>
  
  <p>Here's my config.xml:</p>
  
  <pre><code>&lt;widget xmlns     = "http://www.w3.org/ns/widgets"
          id        = "io.cordova.helloCordova"
          version   = "2.0.0"&gt;
      &lt;name&gt;Mobile App&lt;/name&gt;
  
      &lt;description&gt;
          Mobile Phonegap Application
      &lt;/description&gt;
  
      &lt;access origin="*" subdomains="true"/&gt;
  
      &lt;content src="index.html" /&gt;
  
      &lt;!-- Preferences for iOS --&gt;
      &lt;preference name="KeyboardDisplayRequiresUserAction" value="true" /&gt;
      &lt;preference name="SuppressesIncrementalRendering" value="false" /&gt;
      &lt;preference name="UIWebViewBounce" value="true" /&gt;
      &lt;preference name="TopActivityIndicator" value="gray" /&gt;
      &lt;preference name="EnableLocation" value="false" /&gt;
      &lt;preference name="EnableViewportScale" value="false" /&gt;
      &lt;preference name="AutoHideSplashScreen" value="true" /&gt;
      &lt;preference name="ShowSplashScreenSpinner" value="true" /&gt;
      &lt;preference name="MediaPlaybackRequiresUserAction" value="false" /&gt;
      &lt;preference name="AllowInlineMediaPlayback" value="false" /&gt;
      &lt;preference name="OpenAllWhitelistURLsInWebView" value="false" /&gt;
      &lt;preference name="BackupWebStorage" value="cloud" /&gt;
      &lt;preference name="permissions" value="none" /&gt;
      &lt;preference name="orientation" value="default" /&gt;
      &lt;preference name="target-device" value="universal" /&gt;
      &lt;preference name="fullscreen" value="true" /&gt;
      &lt;preference name="webviewbounce" value="true" /&gt;
      &lt;preference name="prerendered-icon" value="true" /&gt;
      &lt;preference name="stay-in-webview" value="false" /&gt;
      &lt;preference name="ios-statusbarstyle" value="black-opaque" /&gt;
      &lt;preference name="detect-data-types" value="true" /&gt;
      &lt;preference name="exit-on-suspend" value="false" /&gt;
      &lt;preference name="show-splash-screen-spinner" value="true" /&gt;
      &lt;preference name="auto-hide-splash-screen" value="true" /&gt;
      &lt;preference name="disable-cursor" value="false" /&gt;
      &lt;preference name="android-minSdkVersion" value="7" /&gt;
      &lt;preference name="android-installLocation" value="auto" /&gt;
  
      &lt;feature name="SSLSelfCertOverride"&gt;
          &lt;param name="ios-package" value="SSLSelfCertOverride" /&gt;
      &lt;/feature&gt;
      &lt;feature name="LocalStorage"&gt;
          &lt;param name="ios-package" value="CDVLocalStorage"/&gt;
      &lt;/feature&gt;
      &lt;feature name="PhoneDialer"&gt;
          &lt;param name="ios-package" value="PhoneDialer"/&gt;
          &lt;param name="onload" value="true" /&gt;
      &lt;/feature&gt;
      &lt;feature name="Sms"&gt;
          &lt;param name="ios-package" value="Sms"/&gt;
          &lt;param name="onload" value="true" /&gt;
      &lt;/feature&gt;
      &lt;feature name="EmailComposer"&gt;
          &lt;param name="ios-package" value="EmailComposer"/&gt;
          &lt;param name="onload" value="true" /&gt;
      &lt;/feature&gt;
      &lt;feature name="InAppBrowser"&gt;
          &lt;param name="ios-package" value="CDVInAppBrowser" /&gt;
      &lt;/feature&gt;
      &lt;feature name="Geolocation"&gt;
          &lt;param name="ios-package" value="CDVLocation" /&gt;
      &lt;/feature&gt;
      &lt;feature name="PackageInfo"&gt;
          &lt;param name="ios-package" value="PackageInfo" /&gt;
      &lt;/feature&gt;
      &lt;feature name="PDFViewer"&gt;
          &lt;param name="ios-package" value="PDFViewer" /&gt;
      &lt;/feature&gt;
  &lt;/widget&gt;
  </code></pre>