Repository navigation
Offer to install apps from Home - #405
Conversation
Chrome and Edge on computers install another site's web app with the <install> element. Opening an app from Home there first asks whether to install it, with the browser's install button, opening it in the browser instead, and not asking again in this browser. Once installed, the card shows the element, which the browser labels Launch, in place of Open app. Other browsers open the app as before. Such installs fetch the manifest without cookies, so the runtime serves an app's manifest and icons without sign-in: the uploaded files as they are, never through rewrite rules, and the generated manifest with the id "/".
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 1e8dada | Nov 25 2026, 05:08 PM |
Template installs ask the builder for PNG app icons since #403. The e2e builder parsed every request other than /document as a bundle request, so the icon request failed and the template install test with it.
Chrome opens links into an installed app's window by itself, while the <install> element would first show its launch dialog. Open app stays a link, and the question stops for an app once it was installed from it. The dialog asks whether to use the app as an app, which fits both the Install and the Launch label.
| size="sm" | ||
| onclick={(event: MouseEvent) => { | ||
| // Read on each click: another card may have turned the question off. | ||
| if (!supported || read(promptKey) === "off" || read(installedKey) === "installed") return; |
There was a problem hiding this comment.
Reinstall disappears from Home
After a user installs and later uninstalls an app, installedKey still contains "installed". This early return permanently skips the dialog, and the former card-level <install> button is gone. Home therefore loses its reinstall control, contrary to the described behavior. Keep an install control reachable without requiring users to clear browser storage.
There was a problem hiding this comment.
Intended for now: pages cannot read whether an app is still installed, so an uninstall is not detected. Reinstalling remains available from the app's address bar; we will revisit this if users ask for it.
There was a problem hiding this comment.
Understood. Since pages can’t detect an uninstall, keeping the install prompt suppressed is intentional, and reinstalling through the app’s address bar is the current path. I’ll treat the missing Home reinstall control as an accepted limitation for this PR.
## Summary - Adds **Install apps on phones and computers**: every Widefleet app installs on iPhone, iPad, Android, Mac and Windows from the same deployment. Covers the install steps per device (iPhone steps match the **Open app** dialog on Home), the installed name, icons rendered from `favicon.svg`, own icons or manifest, and that name and icon are readable without signing in. - **App development** says that every app installs on phones and computers and links the guide, so readers looking for a phone app find it. - **Applications** keeps a short section that links the guide. Documents #393, #403 and #405, released in v0.7.23. ## Checks - `blume validate` and Oxfmt pass.
Summary
HTMLInstallElement, on by default from Chrome 158), the first Open app asks Use as an app? The dialog holds the browser's own<install>button (labeled Install, or Launch when already installed), Open in browser and Don't ask again in this browser. After a successful install (installresultwithsuccess), the browser no longer asks for that app. Other browsers open the app as before.<install>would first show its launch dialog.localStorage; the opt-out is read on each click, so it applies to every card./manifest.webmanifestand the icon paths (favicon.svg,apple-touch-icon.png,favicon.png,icon-192.png,icon-512.png) are served without sign-in. They are the uploaded files as they are (with304for a matching ETag), never through_redirectsrules, so a catch-all rule cannot expose a page. Suspended organizations and apps without a web entry still get no answer. The generated manifest gainsid: "/", and the injected link no longer needscrossorigin="use-credentials".Screenshots
Chrome 155 with
--enable-blink-features=InstallElement, synthetic catalog app. Home itself is unchanged.The browser renders the button's icon and text and requires opaque colors, a 3:1 contrast and a minimum size; the page sets colors, radius, padding and font.
isValidistruewith noinvalidReasonin the dialog.Checks
pnpm check; full e2e suite (76 passed); catalog test with the element enabled.Docs: #394


Confidence Score: 5/5
The PR appears safe to merge, with a non-blocking loss of the reinstall control on Home.Findings
Summary
This PR offers app installation from Home and makes app manifests and icons readable without signing in.
Reviews (3) · Last reviewed commit: "Keep Open app as the way into installed ..." · Reviewed by Greptile