top | item 9723896

Progressive Apps: Escaping Tabs Without Losing Our Soul

51 points| cpeterso | 10 years ago |infrequently.org | reply

9 comments

order
[+] scriptedfate|10 years ago|reply
[apple-]mobile-web-app-capable yes [1][2] is a non-standard meta-tag that some browsers detect in order to identify webpages who, when launched from the homescreen, want to be treated app-like. (they want you to ditch the navigation capabilities (back, urlfield) of the Browser as they provide their own, for instance)

Add to Homescreen is something that is available as a bookmark-alike feature in most/all mobile browsers. It is user-initiated, so if the user doesn't look for it, there is no prompt (unless the webapp provides it).

The other app-y bits (App Manifest for prefetching and caching the rest of the app for offline use, localstorage webfs and assorted others for persistence, responsive design using the picture element and flexbox) are all provided for webpages as much as app-like sites.

[1] https://developer.apple.com/library/safari/documentation/App... [2] https://developer.chrome.com/multidevice/android/installtoho...

[+] duncanawoods|10 years ago|reply
This is something I have been thinking about too and I would love to see standardised. I would see it as an html flag that indicates to the browser the user has the option to run the page in an Atom style shell. The main things I would want when running in privileged "app mode" include:

1. full access to keyboard short-cuts without browser mediation. Web-based tools like spreadsheets really suffer from inability to assign short-cuts for basic features like "add row".

2. no browser chrome e.g. url bar, toolbars, bookmarks etc. taking up screen real estate. Really important when running on mobile but also nice on the desktop too.

3. no addons by default (perhaps a different addon profile) to reduce performance overheads and behaviour conflicts on already performance constrained web-apps. The assumption is that these are tools like IDEs, word processors and spreadsheets.

4. aggressive caching of js/fonts/images for faster load. Even Google Docs suffers from "flashes of unstyled content"

5. cross-platform access to OS features for file-system access. One reason users have lost control of their data into the could is because browser-filesystem interaction is so painfully hobbled. If we used the file-system more then users could choose the dropbox style sync service of their choice rather than be locked in to the web-app developer's hosting. Users becoming responsible for their data again simplifies the web-app developer's architecture and hosting costs.

6. isolated process \ memory space from the user's other browsing activities. As a user, I don't want my office web-apps compromised by a broken video player in another tab of my browser. It would give a middle ground between Chrome's 100s of processes taking GBs of RAM versus Firefox vulnerable single process.

The main issue is that any unsandboxed behaviour would be abused. I wonder if browser vendors could support some type of app-developer certificate system. A nominal fee from a registered company would help track identity and certificates for malware developers can be banned.

[+] scriptedfate|10 years ago|reply
unsandboxed behaviour being abused... you mean like all other apps written natively for any platform since the dawn of time? There's no vetting process for Windows utilities or bash scripts you find online. The closest you can get is that it's hosted on a store, but that's a mobile paradigm and is a problem as much as it is a solution.
[+] rhaps0dy|10 years ago|reply
Is there any example code on how to do that? I could not find it in the article.

This is the way Firefox OS wants (wanted? since it's criticised in the article) applications to be.

[+] untog|10 years ago|reply
There's a reason all of these examples show Android. While it's possible to do with Apple, there is no "ask-when-you-need-it permission model" for homescreen - you have to rely on users choosing the buried "Add To Homescreen" option, which they very rarely do.

It's a shame, because you can do a lot with those little homescreen webapps - if it could also allow notifications and/or be opened via URL a lot of apps could be made that way