How to define progressive web app (PWA) screenshots and shortcuts (#note)

I’m not following what’s happening in the progressive web app space because I don’t think every website needs to be an offline-ready PWA. But today, I learned about two valuable new PWA features while skipping through Önder Ceylan’s…


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis

I'm not following what's happening in the progressive web app space because I don't think every website needs to be an offline-ready PWA. But today, I learned about two valuable new PWA features while skipping through Önder Ceylan's PWA summit slides "Make your PWAs Look and Launch Beautifully".

Progressive web apps are configured via a web app manifest that you define in an HTML link element.

<link rel="manifest" href="manifest.json">

This manifest JSON file holds information such as the app name, its icons and, as I learned today, screenshots and shortcuts. 😲

PWA installation screenshots

It's possible to define screenshots that show up when people install your progressive web app. Define a screenshots property in the manifest file, and the installation dialog will look more polished. I like that!

App screenshots make PWAs feel more "app-like" and give users an idea of included app features.

{
  "screenshots" : [
    {
      "src": "screenshot1.webp",
      "sizes": "1280x720",
      "type": "image/webp"
    },
    {
      "src": "screenshot2.webp",
      "sizes": "1280x720",
      "type": "image/webp"
    }
  ]
}

PWA shortcuts

I don't use app shortcuts on my Android, but they're surely another way to give progressive web apps a native feeling. Add a shortcut configuration to your web app manifest and give your users superpowers!

{
  "shortcuts" : [
    {
      "name": "Today's agenda",
      "url": "/today",
      "description": "List of events planned for today"
    },
    {
      "name": "New event",
      "url": "/create/event"
    }
  ]
}

I love that every shortcut is a URL definition. That's the beauty of the web in action!

Önder's slide deck includes many more helpful tips. Make sure to check it out. Thanks, Önder!


Reply to Stefan


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis


Print Share Comment Cite Upload Translate Updates
APA

Stefan Judis | Sciencx (2021-10-08T22:00:00+00:00) How to define progressive web app (PWA) screenshots and shortcuts (#note). Retrieved from https://www.scien.cx/2021/10/08/how-to-define-progressive-web-app-pwa-screenshots-and-shortcuts-note/

MLA
" » How to define progressive web app (PWA) screenshots and shortcuts (#note)." Stefan Judis | Sciencx - Friday October 8, 2021, https://www.scien.cx/2021/10/08/how-to-define-progressive-web-app-pwa-screenshots-and-shortcuts-note/
HARVARD
Stefan Judis | Sciencx Friday October 8, 2021 » How to define progressive web app (PWA) screenshots and shortcuts (#note)., viewed ,<https://www.scien.cx/2021/10/08/how-to-define-progressive-web-app-pwa-screenshots-and-shortcuts-note/>
VANCOUVER
Stefan Judis | Sciencx - » How to define progressive web app (PWA) screenshots and shortcuts (#note). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/10/08/how-to-define-progressive-web-app-pwa-screenshots-and-shortcuts-note/
CHICAGO
" » How to define progressive web app (PWA) screenshots and shortcuts (#note)." Stefan Judis | Sciencx - Accessed . https://www.scien.cx/2021/10/08/how-to-define-progressive-web-app-pwa-screenshots-and-shortcuts-note/
IEEE
" » How to define progressive web app (PWA) screenshots and shortcuts (#note)." Stefan Judis | Sciencx [Online]. Available: https://www.scien.cx/2021/10/08/how-to-define-progressive-web-app-pwa-screenshots-and-shortcuts-note/. [Accessed: ]
rf:citation
» How to define progressive web app (PWA) screenshots and shortcuts (#note) | Stefan Judis | Sciencx | https://www.scien.cx/2021/10/08/how-to-define-progressive-web-app-pwa-screenshots-and-shortcuts-note/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.