title: How to resume JavaScript timer on iOS8 web app after screen unlock?
body: <p>On iOS8 this HTML5 web app does not resume the js timer after the screen is locked and then unlocked if the webapp was active AND launched from the homescreen icon.  On iOS7 the timer would continue in this situation.  I need the timer to continue after the screen is unlocked - any tips to achieve this?</p>
  
  <p>Note/ Please add the web app to the homescreen first using Safari's "add to home screen" via the sharing button.  Running the page inside Safari does not cause the issue described above.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;meta name="apple-mobile-web-app-capable" content="yes" /&gt;
      &lt;title&gt;Test&lt;/title&gt;
      &lt;script&gt;
          var tim;
          function go() {
              tim = window.setInterval(action, 1000);
          }
          function action() {
              document.getElementById('x').innerHTML = new Date().getTime().toString();
          }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="go()"&gt;
      &lt;div id="x"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>