title: iPhone does not recognize PhoneGap's navigator.app
body: <p>I have a button to exit from the application. The function looks like this:</p>
  
  <pre><code>//Close application
  function close_window() {
    navigator.app.exitApp();
  }
  </code></pre>
  
  <p>It did not work, so I tried the following line:</p>
  
  <pre><code>navigator.device.exitApp();
  </code></pre>
  
  <p>It did not work either. Then I discovered by alert that the iPhone does not recognize PhoneGap's navigator.app and navigator.device. I use PhoneGap version 2.2.0.</p>
  
  <p>Why is this happening?</p>
  
  <p>P.S.: It works for me on Android.</p>