The Install the App block (lh-web-application/install-button) puts a button on a page that opens the install sheet. Use it where asking makes sense on a particular site: a members’ page, a registration confirmation, a newsletter landing page. It adds to the automatic prompt rather than replacing it.
block): reported as detail.trigger on the install sheet’s events, so analytics can tell one button from another. It is reduced to lower case letters, numbers, dashes and underscores.div.wp-block-lh-web-application-install-button holding button.wp-element-button with a data-lh-web-application-install attribute carrying the trigger name. The theme’s button styles apply; the install script opens the sheet from any element with that attribute.lh_web_application-is_standalone), and when printing.is-hidden-when-installed and is hidden while the body has lh_web_application-is_installed. The install script sets that class in a browser that has installed the app (remembered in localStorage) and clears it if the browser offers to install it again, meaning the app was removed. An install made on another device or before storage was cleared is not known, so the button shows there.