docs.rodeo

MDN Web Docs mirror

screenshots

{{QuickLinksWithSubpages("/en-US/docs/Web/Progressive_web_apps/Manifest/Reference")}} 

The screenshots manifest member lets you specify one or more images that showcase your web application. These images help users preview your web app’s interface and features in app stores.

[!NOTE] The screenshots member is optional, and app stores may not display these images when presenting your app.

Syntax

/* Single screenshot */
"screenshots": [
  {
    "src": "desktop.webp",
    "sizes": "1280x720",
    "type": "image/webp"
  }
]

/* Two screenshots */
"screenshots": [
  {
    "src": "screenshots/home.webp",
    "sizes": "1280x720",
    "type": "image/webp",
    "form_factor": "wide",
    "label": "Home screen showing main navigation and featured content"
  },
  {
    "src": "screenshots/dashboard.webp",
    "sizes": "1280x720",
    "type": "image/webp",
    "platform": "ios",
    "label": "Dashboard view displaying key metrics"
  }
]

Values

Description

The screenshots member is supplementary metadata that does not affect the app’s runtime behavior or how browsers present the app. Screenshots are used in app stores and other distribution platforms to showcase your app’s features to potential users.

Distribution platforms may choose how many screenshots to display.

The images below from the Apple App Store show how screenshots appear in an iPhone app listing. In the gallery view (image on the left), users can scroll through multiple images horizontally. They can tap any image to view it in full screen (image on the right).

Todoist app in the Apple App Store showing a horizontal gallery of app images that users can scroll through A full-screen view of an image from the horizontal gallery of Todoist app

The same full-screen image on iPad shows why different screenshots are needed for narrow (iPhone) and wide (iPad) device form factors:

Todoist app listing on iPad showing multiple screenshots in a wider gallery view

Examples

Adding previews for a meal planning web app

This example shows how to add screenshots for a meal planning app for different devices. The screenshots show the same feature of the app in desktop and mobile views:

{
  "name": "Meal Planner",
  "screenshots": [
    {
      "src": "screenshots/desktop-home.webp",
      "sizes": "1920x1080",
      "form_factor": "wide",
      "label": "Desktop view showing weekly meal calendar"
    },
    {
      "src": "screenshots/mobile-home.webp",
      "sizes": "750x1334",
      "form_factor": "narrow",
      "label": "Mobile view showing weekly meal calendar"
    }
  ]
}

Specifications

{{Specifications}} 

Browser compatibility

The screenshots manifest member is used by app stores when publishing and listing web apps, so browser compatibility is not applicable. While browsers may parse this member, it’s optional and doesn’t affect the app’s functionality or presentation.

In this article

View on MDN