Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look into adding a web application manifest file #1629

Closed
wants to merge 2 commits into from
Closed

Conversation

alrra
Copy link
Member

@alrra alrra commented Nov 8, 2014

General information

From: https://w3c.github.io/manifest/#h2_abstract

JSON-based manifest, which provides developers with a centralized place to put metadata associated with a web application. This includes, but is not limited to, the web application's name, links to icons, as well as the preferred URL to open when a user launches the web application. The manifest also allows developers to declare a default orientation for their web application, as well as providing the ability to set the display mode for the application (e.g., in fullscreen). .

From: http://blog.chromium.org/2014/10/chrome-39-beta-js-generators-animation.html

Previously when developers wanted to allow their web applications to be added to the home screen from Chrome for Android, they had to use a variety of <meta> and <link> tags to trigger this behavior and deliver relevant resources such as icons. Having this embedded in every page was not only repetitive, but was a waste of bandwidth and put extra bits on the critical path.
...
Developers seeking to enable "add to homescreen" can define a title, landing page, default orientation, and different icons depending on size and screen density.

Links

Specification:

Other useful links:

Browser support


Required changes

  • Add a generic web application manifest file
    • Decide on the name (e.g.: manifest.json)
    • Decide what members to provide by default and with what values
  • Add a <link> in index.html(e.g.: <link rel="manifest" href="manifest.json">)
  • Update documentation

The server configs are already covered!

Note: For now, the scope of this issue is mainly to start the discussion and to track how browser support evolves.

@j8r
Copy link

j8r commented Feb 11, 2015

I think this should be a "manifest.webapp"(with json syntax) instead of "manifest.json"

@alrra
Copy link
Member Author

alrra commented Feb 11, 2015

I think this should be a "manifest.webapp"(with json syntax) instead of "manifest.json"

@JulR43 Please see: https://w3c.github.io/manifest/#h-media-type-registration

@j8r
Copy link

j8r commented Feb 11, 2015

Ok! manifest.webapp is specialy for Firefox OS, AndroidManifest.xml for Android and WMAppManifest.xml for Windows Phone 8. Firefox (Gecko) and Chrome (Blink) have a manifest.json.
You can add

{
  "name": "My App",
  "description": "Description here",
  "version": 0,
  "icons": {
    "256": "/img/icon-256.png",
    "128": "/img/icon-128.png"
  }
}

@alrra
Copy link
Member Author

alrra commented Apr 5, 2015

Related discussion: w3c/manifest#346.

@alrra
Copy link
Member Author

alrra commented Apr 17, 2015

I've done a little bit of digging and updated this pull request:

Thoughts?


Remaining TODOs:

  • Make changes based on feedback
  • Update documentation

"icons": [{
"src": "icon.png",
"sizes": "192x192",
"type": "image/png"

This comment was marked as abuse.

This comment was marked as abuse.

@marcoscaceres
Copy link

name => defaults to using the <title>.

Will default to the value of the content in a <meta name=application-name content=foo> instead. We are currently working out what the defaults are going to be in the spec (this PR will change: w3c/manifest#351).

@marcoscaceres
Copy link

(fixed comment above)

@alrra
Copy link
Member Author

alrra commented Apr 17, 2015

name => defaults to using the <title>.

Will default to the value of the content in a <meta name=application-name content=foo> instead. We are currently working out what the defaults are going to be in the spec (this PR will change: w3c/manifest#351).

@marcoscaceres I was talking from the perspective of H5BP. Since we don't include a <meta name=application-name content=foo>, right now, name will default to the value of <title>.

edit: Updated my previous comment.

@alrra alrra removed this from the 5.2.0 milestone Apr 30, 2015
@alrra alrra removed their assignment May 1, 2015
{
"icons": [{
"src": "icon.png",
"sizes": "192x192"

This comment was marked as abuse.

# Conflicts:
#	dist/apple-touch-icon.png
#	src/apple-touch-icon.png
roblarsen added a commit to roblarsen/html5-boilerplate that referenced this pull request Jul 11, 2017
@roblarsen roblarsen mentioned this pull request Jul 11, 2017
3 tasks
roblarsen added a commit that referenced this pull request Jul 11, 2017
@roblarsen roblarsen deleted the manifest branch September 11, 2017 20:57
jeffreznik pushed a commit to jeffreznik/sw-test that referenced this pull request Oct 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants