epiphany-logo.png

GNOME Web

A simple, clean, beautiful view of the web

Web Applications

This document contains information about GNOME Web’s installable Web Applications for developers.

The information in this document was last updated for Web version 3.22.

Managing Web Applications

Installation

Please refer to Create a Web Application in Web Help.

To enhance the installation experience of our web app or website, please refer to the relevant information in this document.

Uninstallation

Web Applications can be uninstalled as a normal application from within the GNOME Software, or by navigating to the following URL in Web: about:applications

Notable Technicalities

  • Web Applications use the same User-Agent string as Web, but appends an additional (Web App) component after Epiphany/<version>:

    Mozilla/5.0 (Fedora; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) Version/8.0 Safari/602.1 Epiphany/3.21.2 (Web App)
  • Web Notifications API’s requestPermission() method always returns "granted" within installed Web Applications.

  • Installable Web Apps don’t share cookies or cache with the Web application. Each Web Application runs in an isolated and separate instance with a separate data profile. Notably, all domain cookies and are copied into the installable web app’s profile at the time the Web Application is installed. Passwords stored in the GNOME Keychain are available in Web Applications.

How is the application icon determined?

Webpage metadata must include high quality icons to give users of the web app or website the best experience when installing it as a Web Applications.

The ideal icon size is 192x192 px square, or larger. Smaller and larger images will be scale to 192 px on installation. Images that aren’t may be cropped. It’s recommended to either provide a standard vector icon.

The icon discovery recognizes the following metadata, in order of preference:

Web Standard (vector)

Web Standard (size-specific raster image)

  • Example:

    <link rel="icon" sizes="512x512" href="/web_icon_512.png">
    <link rel="icon" sizes="128x128" href="/web_icon_128.png">
    <link rel="icon" sizes="64x64" href="/web_icon_64.png">
  • Reference: https://www.w3.org/TR/html/links.html#link-type-icon

  • Notes: The largest single image size is used. A space separated lists of sizes is unsupported at this time. Can be nearly any image format. The size must be at least 96 px.

Microsoft Tile Image

Apple Touch Icon

  • Example:

<link rel="apple-touch-icon" href="/apple-touch-icon.png">

Open Graph Protocol

Favicon

Fallback

If no metadata is discovered, Web will make a last-ditched effort to retrieve /favicon.ico from the server.

How is the application name determined?

Web Applications can suggest a name when users create them based on metadata in the document. In order of preference:

Web Standard

Open Graph Protocol

Fallback

If no better name candidate is found, Web Applications fallback to use the doman name. The <title> element is not used.

Sources

Apps/Web/Docs/Applications (last edited 2019-03-24 21:17:56 by MichaelCatanzaro)