andreasgal/gaia — pull request #1219 by davidflanagan (2012-04-13 05:57:36+00:00)
Title: change the way offline cache updates are handled

we used to force an application reload when an updateready event was received.

This pull request displays a notification, and then does the reload when and if the user clicks on the notification. Ideally, once we have confirm() dialogs, I'd have the notification trigger a confirm() before reloading.

I've tested this on the Galaxy S2. It works if the app being updated is the current app. If there is some other app "on top", then the notification click never gets delivered.... I haven't looked into why that is.

But for now, even partially working, this is better than the old behavior.

This addresses issue #1204

@cgjones @vingtetun what do you think?