title: iphone safari web app backgrounding
body: <p>I'm developing an iPhone web app following some of the suggestions that can be found here : <a href="http://matt.might.net/articles/how-to-native-iphone-ipad-apps-in-javascript/" rel="nofollow">http://matt.might.net/articles/how-to-native-iphone-ipad-apps-in-javascript/</a>.  In particular, I have designed it to open in a full screen window without the Safari address bar using </p>
  
  <pre><code>&lt;meta name="apple-mobile-web-app-capable" content="yes" /&gt;.
  </code></pre>
  
  <p>On my own iPhone 4, when I test this is produces odd behavior.  Unlike other apps and Safari, when I move away from this app it doesn't background; it doesn't save the execution state.  It just loses everything.  If I switch to something else on my phone and then come back to my web app, it launches it again fresh.  So, here are some individual questions that make up my confusion:</p>
  
  <p>1) Is this standard behavior or something weird that is happening on my phone?  That is, if you have specific knowledge about the iPhone and know that this shouldn't happen, I'd be interested to know.  Otherwise,</p>
  
  <p>2) Can anything be done to change this?  Can I make it save the current state in the same way that it does within Safari?</p>
  
  <p>The Safari developer documentation is strangely silent on this.</p>