title: Phonegap deviceready not firing using Cordova 2.2.0 in iOS
body: <p>I am building a PhoneGap App. Unfortunately, when deploying to iOS devices and simulators the <code>deviceready</code> event never fires. I'm using Phonegap 2.2.0.</p>
  
  <p>When I deploy the same code to Android (using the Android-specific <code>cordova.js</code> file of course) the App will work perfectly.</p>
  
  <p>When I replace the <code>deviceready</code> with a jQuery-<code>ready()</code> the app will load on iOS as well, yet it will then lack access to the device specific APIs.</p>
  
  <p>The <code>cordova.js</code> is loaded as I will see a simple alert message that I put inside of it, yet <code>deviceready</code> never fires and the APIs are never exposed.</p>
  
  <p>My HTMLs <code>head</code>:</p>
  
  <pre><code>&lt;script type="text/javascript" charset="utf-8" src="js/cordova.js"&gt;&lt;/script&gt; &lt;!-- yes it is the iOS version --&gt;
  &lt;script src="js/jquery-1.8.2.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/app.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>My JS:</p>
  
  <pre><code>function doStuff(){
  //app functionality
  }
  document.addEventListener('deviceready', doStuff, false);
  </code></pre>
  
  <p>But somehow stuff will only get done on Android...</p>