Problem/Motivation
New browser features enable better website integration to users' systems. While working on the progressive web app module I came across a W3C draft for a manifest file. This file is used on mobile devices to allow website authors some control over the way the shortcut and initialization screen looks like.
Proposed resolution
- Add new form fields and reorganize the site information form.
- Add a
<link rel="manifest" href="…/manifest.json">
tag in the head and a way to generate that file. - Generation of a manifest.json file containing at least:
{"lang": "en","dir": "ltr","name": "Very good Drupal Website™","short_name": "Drupal Website™","icons": [{"src": "my/default/theme/logo.png","sizes": "144x144" }],"start_url": "/","display": "browser","orientation": "portrait","theme_color": "#ffffff","background_color": "#ffffff" }
User interface changes
Site information form changes. New fields:
- short_name (textfield)
- start_url (textfield) Could be different from the site homepage.
- display (select list/radio)
- orientation (select list/radio)
- theme_color (probably expose that to themes)
- background_color (probably expose that to themes)
API changes
Probably some ways for theme to declare/alter informations in the manifest file.
More details: Web app manifests usher new wave of progressive apps to your homescreen.