Hi Thinker Li, Well lets say that this api exists, I know it doesnt, but lets just say it now exists, Could you explain more about how are you planning to interact with this api. how you are planning to store and restore data from session back into the app. And what other parameters are you planning to put into that api.
Thanks *Prateek Jadhwani* www.prateekjadhwani.com On Thu, Mar 27, 2014 at 4:39 PM, Thinker K.F. Li <[email protected]>wrote: > From: James Burke <[email protected]> > Subject: Re: [b2g] Session Restoring of WebApps > Date: Thu, 27 Mar 2014 13:23:58 -0700 > > > On Thu, Mar 27, 2014 at 1:23 PM, Thinker K.F. Li <[email protected]> > wrote: > >> I suggest to let webapp itself to decide if saving & restoring states. > >> For B2G, sysapp decides to restoring a session or not while the user > >> revisiting an app. For Firefox, it is brower to make a decision. > >> > >> So, we need a way (an API) that sysapp to signal the platform if to > >> save and restore session data for an app while the sysapp launch the > >> app. > > > > I still think pushState fits in this definition. It is already > > provided by the platform, and also gets apps to think in terms of > > addressable URLs for UI states (useful for other desires for web apps, > > like bookmarking a jump point into an app), and it allows a chain of > > states to be saved, which is useful if the app is killed, and user > > wants to be back in the UI flow once restored. > > I have no favor of session storage or pushState. My point is no mater > how apps save and restore states, it is up to apps them-self. But, > apps should not care about if history or session storage would be > restored or not. It is up to the sysapp or the browser. The sysapp > decides if to restore session data (session storage and history) by > what UX it would like to provide. So, there is no additional API for > apps, but new APIs, or API changes, for the sysapp. > > > > > James > _______________________________________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g >
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
