Comments on: The W3C App Manifest specification https://stevefaulkner.github.io/html5doctored/web-manifest-specification/ helping you implement HTML5 today Thu, 28 Jul 2016 17:36:34 +0000 hourly 1 By: Matteo https://stevefaulkner.github.io/html5doctored/web-manifest-specification/#comment-1211901 Thu, 11 Dec 2014 15:16:26 +0000 http://html5doctor.com/?p=5515#comment-1211901 @Klaus just add a parameter to start_url, for example

"start_url" : "/index.html?from_homescreen=1"

]]>
By: Klaus https://stevefaulkner.github.io/html5doctored/web-manifest-specification/#comment-1176592 Sun, 07 Dec 2014 18:19:31 +0000 http://html5doctor.com/?p=5515#comment-1176592 I am desperately trying to find a way to detect if a user ‘has installed’ my web app. The method advertized here, to add the media query:
@media all and (display-mode: standalone){ …} to CSS and then to check with Javascript matchMedia .. well, that sounds so promising, but isn’t working at all. I tried with Google Chrome and a dynamic HTML-output to check if it does ‘snap’. Nope.

This display-mode, I can’t even find it in the W3C Media Queries Level 4 working draft from June 2014. Is it a pure fantasy of the article’s writer?

]]>
By: Pipo https://stevefaulkner.github.io/html5doctored/web-manifest-specification/#comment-264856 Thu, 21 Aug 2014 06:35:02 +0000 http://html5doctor.com/?p=5515#comment-264856 Minor question: any reasons why its called “service_worker” and “start_url” instead of “serviceWorker” and “startUrl”? Camel case seems to be far more widespread for web developers. See “devDependencies” from Nodes package.json as an example.

]]>
By: Jesse Tan https://stevefaulkner.github.io/html5doctored/web-manifest-specification/#comment-179664 Fri, 01 Aug 2014 09:11:12 +0000 http://html5doctor.com/?p=5515#comment-179664 Always nice to have a bit more human-friendly article besides the official spec.
I see no mention of “scope” in the latest published version or editor draft. Did that get removed already or hasn’t it been added yet?

]]>
By: robert https://stevefaulkner.github.io/html5doctored/web-manifest-specification/#comment-173454 Wed, 30 Jul 2014 19:59:12 +0000 http://html5doctor.com/?p=5515#comment-173454 .yaml is rad too although I think JSON is probably right in this case?

http://stackoverflow.com/questions/1726802/what-is-the-difference-between-yaml-and-json-when-to-prefer-one-over-the-other

would be interested on hearing your thoughts for not using yaml on this.

]]>
By: Jonathan Stark https://stevefaulkner.github.io/html5doctored/web-manifest-specification/#comment-173304 Wed, 30 Jul 2014 18:58:15 +0000 http://html5doctor.com/?p=5515#comment-173304 Great stuff!

I’m very excited for this – promoting web apps in the mobile OS (e.g., app launcher, app switcher, prefs pane in system settings) results in a significant improvement in the user experience.

I recently experimented with the new FxOS app installation option in Firefox for Android and it seriously kicks ass. Seamless installation experience, even when launching the app after uninstalling Firefox (e.g., “This app requires Firefox for Android. Please tap here to install it.”). Very nicely done!

A few thoughts from a lowly web dev:

1. External Manifest File

Perhaps this is only a transitional concern, but until there is wide consensus and broad implementation of the manifest format, I prefer the external file approach. We’ll likely have to support a few different formats for a while and I’d rather not have that mess inside my actual app but rather in a few external files (e.g., config.xml for PhoneGap, manifest.json for FxOS, the inevitable Chrome version of this, etc). Long term, I would prefer to see it in the meta tags but not until everyone is more or less in agreement.

2. Discoverablity

While I wholeheartedly agree that bugging people to “add to home screen” is annoying, I can attest from personal experience that it is effective. The feature is poorly advertised in browsers and few people are aware that they can do it, or what the benefits of doing it are. This is why cubiq’s Add to Homescreen js lib is so popular – if devs don’t advertise that their app can be saved to the home screen, no one will do it.

For web app installs to actually gain meaningful traction, the browser needs to advertise that a particular site is installable. I’m picturing a download icon in the URL bar, similar to the way some browsers display an RSS icon if a feed is present. Or, maybe similar to smart banners work in Safari on iOS, except instead of driving users to the native app store, the app would just install on the spot. Or like the “save password?” prompt in Chrome… whatever, you get the idea.

ASIDE: There needs to be a way to pass state into the installed app so the user can pick up where she left off in the browser, BUT this should be a one way, one time thing. e.g., clearing cookies in the parent browser later on shouldn’t log me out of my installed web app.

3. App Stores

Assuming that user behavior remains relatively consistent for the next couple years, we’re also going to need “web app stores” to accommodate user expectations. I’m picturing an “App Store” option in the browser menu that takes the user to a web site where they can browse and install a bunch of apps at once. Mozilla obviously realizes this because the Firefox Marketplace is brilliant.

Oof… sorry for the monologue! I’m just super excited about this trend and can’t wait for it to become commonplace.

Cheers!

JS

For more info:

https://hacks.mozilla.org/2014/06/firefox-os-apps-run-on-android/
http://docs.build.phonegap.com/en_US/configuring_basics.md.html
http://cubiq.org/add-to-home-screen
https://marketplace.firefox.com/

]]>