title: PhoneGap Events Not Firing On iPhone
body: <p>I've started developing for iPhone using PhoneGap and an iPhone running iOS 5. With the following code, the deviceready and online events appear to fire when the application starts but none of the others, in particular, the resume / pause events appear to. I've tried using the menu button to close the app and then re-open it but nothing appears to fire the resume event.</p>
  
  <p>If anyone could shed any light on this it would be much appreciated.</p>
  
  <p>Thanks in advance!</p>
  
  <pre><code>window.addEventListener('load', function () {
      document.addEventListener('deviceready', onDeviceReady, false);
  }, false);
  
  function onDeviceReady() {
      document.addEventListener('resume', onResume, false);
      document.addEventListener('pause', onPause, false);
      document.addEventListener('online', onOnline, false);
      document.addEventListener('offline', onOffline, false);
  }
  
  function onResume() {
      alert('resume');
  }
  
  function onPause() {
      alert('pause');
  }
  
  function onOnline() {
      alert('online');
  }
  
  function onOffline() {
      alert('offline');
  }
  </code></pre>