question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

audit: Can prompt recurring visitor to install to homescreen

See original GitHub issue

Manual evaluation: manifest has short_name, 144x144 png icon

input:
  • parsed manifest - #22
audit:
  • has a registered SW
  • valid start_url
  • valid name
  • valid short_name
  • icon of size >= 144x144 and png (either type image/png or filename ending in .png)

update: ^ Copied from brendan’s comment below.

See also “PWA validator” bookmarklet - #17

docs: install-to-homescreen on /web

when:
  • page loaded and in idle state

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
brendankennycommented, Jan 4, 2017

manifest has a valid name and valid shortname

this one has been confusing because of the difference in context of use of the short_name. See #348, for instance. We should add a clear comment on this when we fix this 😃

It doesn’t look at standalone/fullscreen

IMO we should get rid of the manifest display audit and rename it chrome-a2hs-display.js or whatever to make it clear what it is and test only for standalone/fullscreen

0reactions
paulirishcommented, Jul 13, 2018

Looked again at the current implementation (installable_manager.cc and app_banner_manager.cc):

  1. is secure
    • is either localhost or has a valid SSL Certificate
  2. has a service worker
    • it must control the current url and the manifest’s start_url
  3. valid_manifest
    • has a valid starturl
    • has either a name or shortname (that isn’t an empty string)
    • display is standalone/fullscreen/minimal-ui
  4. has a satisfactory icon
    • must be a png
    • must be square
    • must be at least 72px, but chrome much prefers 144px or larger.
  5. has sufficient engagement
    • currently requires a 2. see at chrome://site-engagement/
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to show PWA install banner (Add to Homescreen) for ...
In this article, you will learn everything to show PWA install banner on your website as well as to track user activity on...
Read more >
Chrome Badge shows on 'Add To Homescreen' installed PWA ...
A lighthouse audit gives 3/3 100% (Uses HTTPS, Registers a Service Worker, Manifest meets installability requirements) for Installable stating " ...
Read more >
Add to Home screen - Progressive web apps (PWAs) | MDN
How do you use it? · URL bar menu. Open the menu next to the URL bar. · Menu with install app option....
Read more >
Epic Reference Guide – Medical Student
Install Haiku on iPhone. 1. Go to the App Store. 2. Search for Haiku and select Epic Haiku. 3. Install Epic Haiku. 4....
Read more >
Installation prompt - web.dev
For sites that pass the PWA install criteria, the browser triggers an event to prompt the user to install it. The good news...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found