Menu
Feedback
Start here
Tutorials


Configuring PWA in your Store Framework store

Stores developed with VTEX IO Store Framework natively have a Progressive Web App (PWA), a type of web app that offers a user experience similar to a native app but runs directly in a web browser.

For Legacy Portal CMS stores, see the guide How to turn my store's website into a PWA.

To configure a PWA in your store, go to Store Settings > Storefront > Store in the VTEX Admin and follow the steps below:

  1. Click the PWA tab.
  2. Set the Theme color, Background color and add the Android logo icon (512x512, PNG) and iOS logo icon (512x512, PNG). The colors must be specified in hexadecimal code (e.g., #F71963), and the icons must have a size of 512x512 px and a .png extension.

{"base64":"","img":{"width":1001,"height":810,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":37979,"url":"//images.ctfassets.net/alneenqid6w5/2EscgymgyMjCL6nvKedrjk/8b7909e47d4ebe3906f12fc997dec948/pwa-settings-1-en.png"}}

  1. Scroll down and go to the Other PWA settings field. Click the arrow to show the other settings.

{"base64":"","img":{"width":997,"height":813,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":36681,"url":"//images.ctfassets.net/alneenqid6w5/2UJAVrnwSn3NPNxxi42nk8/7e6e92b83cdc7af103e35f19d740343d/pwa-settings-2-en.png"}}

  1. In Other PWA settings, complete the fields as indicated below:

    • Start URL: URL of the PWA homepage.
    • Screen orientation: Format in which the content is displayed in the PWA. One of the following values can be assigned: Any, Natural, Landscape, Landscape (primary), Landscape (secondary), Portrait, Portrait (primary), Portrait (secondary).
    Screen OrientationDescription
    AnyThe page can be viewed in any orientation, and the content automatically adjusts to fit the device's current orientation.
    NaturalFactory default configuration of the device.
    LandscapeThe content is only displayed in landscape orientation. This is useful for apps or games optimized for a wider view.
    Landscape (primary)Horizontal orientation with the top of the device aligned to the left.
    Landscape (secondary)Horizontal orientation with the top of the device aligned to the right.
    PortraitThe content is only displayed in vertical orientation. This is the default setting for most mobile apps.
    Portrait (primary)Portrait orientation with the home button or the bottom of the device pointing downwards.
    Portrait (secondary)Inverted portrait orientation, with the home button or the bottom of the device pointing upwards. This is useful when devices are used upside down.
    • Display: PWA content display modes. One of the following values can be assigned: Full screen, Standalone (Add to Home Screen), Minimal-UI (not supported by Chrome), and Browser.
    DisplayDescription
    Full ScreenPWA fills the entire screen of the device, hiding all elements of the browser's user interface, such as the address bar and other system notifications. It is ideal for games or apps that require a deep immersion, maximizing the available screen space.
    Standalone (Add to Home Screen)The PWA behaves like a native app, running in a separate browser window and not displaying common browser elements such as the address bar. When added to the device's home screen, you can hardly tell the difference between a PWA and a native app.
    Minimal-UI (not supported by Chrome)The PWA displays a minimum of browser user interface elements, such as the address bar and some additional controls. It is a middle ground between Standalone mode and Browser mode.
    BrowserThe PWA opens like a regular browser page, with all the usual browser features visible, such as the address bar, tabs, and other interface controls. It doesn't change the standard way the user interacts with web content and is less immersive than the other display modes.
    • Add to home screen: When activated, it allows the user to install the PWA.
    • "Add to home screen" prompt: Defines the moment when the PWA installation will be recommended to the user. One of the following values can be assigned: On the first visit, On the first item added to the cart, or On the first order. This option only applies when Add to Home Screen is activated.

    {"base64":"","img":{"width":992,"height":475,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":19081,"url":"//images.ctfassets.net/alneenqid6w5/2wVkAwUIy6E33I6pUoXMVT/8496511fdfbe7d9bdd30915bd0d4e3b9/pwa-settings-3-en.png"}}

  2. Save changes by clicking SAVE.

Using a custom service worker

Our service worker supports native push prompts to install the app on the first visit, the first item added to the cart, or the first order. You can customize the notifications in your store's PWA using your own service worker, which will work alongside ours.

To learn how to create your own service worker, see How to install a service worker.

To learn how to leverage the service worker builder to group different service workers in your store, see Using several service workers in your store.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Configuring SEO in Legacy CMS Portal stores
« Previous
Headless CMS - Overview
Next »
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback