onRestarted event
When an app is restored after being unexpectedly terminated (eg, when the browser restarts) it will be sent an…
onRestarted event
When an app is restored after being unexpectedly terminated (eg, when the browser restarts) it will be sent an onRestarted event which should restore the app to the state it was in when it was last running.
This demo app creates a new counter on launch and restores any existing counters across app restarts.
See the source code at https://github.com/GoogleChrome/chrome-app-samples/tree/master/restarted-demo
This version was built from git commit d0e4bdf https://github.com/GoogleChrome/chrome-app-samples/tree/d0e4bdf/restarted-demo