W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2015

Re: [whatwg] Persistent state for homescreen web apps (without reloading each time)

From: Zac Spitzer <zac.spitzer@gmail.com>
Date: Wed, 10 Jun 2015 08:55:03 +1000
Message-ID: <CAArGWaQ4ReiUi_Kx9=Qvr4Oi1xZ4ncbkrTrgh+k4aO_+6KXFYA@mail.gmail.com>
To: Domenic Denicola <d@domenic.me>
Cc: whatwg@whatwg.org
But what do end users or developers expect in terms of browser behavior in
this situation?

The history api (or saving state to indexedDB) aren't going to solve the
problem of reinitialization everytime the user switches back to a web app.
Users expect them to behave like a native app.

The early iPads were low powered devices and many app developers used to
ship content as  images because they couldn't render complex layouts
quickly, but newer tablets are far more powerful and can handle this.

Chrome handles this as users and developers expect, web apps get paged out
and require a reload depending on memory etc. Safari does it every single
time

This is a massive barrier against web apps competing against native apps.
On 10 Jun 2015 6:21 am, "Domenic Denicola" <d@domenic.me> wrote:

> I'm pretty sure it's out of scope. That's really asking to specify how
> OS-level task switching works. I imagine that Safari-wrapper or whatever
> has decided that when the OS switches back to it it will do a reload, just
> like when I switch back to my mail app it does a sync, and other stuff like
> that.
>
> > -----Original Message-----
> > From: whatwg [mailto:whatwg-bounces@lists.whatwg.org] On Behalf Of Zac
> > Spitzer
> > Sent: Monday, June 8, 2015 21:10
> > To: whatwg@whatwg.org
> > Subject: [whatwg] Persistent state for homescreen web apps (without
> > reloading each time)
> >
> > Is it within the scope of the spec to specify whether home screen web
> apps
> > should retain their loaded state when switching from foreground to
> > background and back to foreground again?
> >
> > Chrome behaves exactly as expected, however, iOS reloads the web app
> > each time
> >
> > http://zacster.blogspot.com.au/2015/04/broken-web-apps-launched-from-
> > ios-home.html
> >
> > --
> > Zac Spitzer
> > +61 405 847 168
>
Received on Tuesday, 9 June 2015 23:08:09 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:32 UTC