Skip to content

Placeholder icons kept a PWA uninstallable

Published

A food-logging web app had never been installable on a real phone because its two icon files were 68-byte, one-by-one-pixel placeholders despite full-size manifest declarations. The dev.to account thekilteddev reported the finding in “Never installable” on 2026-09-19. One technical person had built the proof of concept alongside an NHS dietetic team; its service worker, manifest, and caching logic had been correct from the start (the report).

The report frames the three days before that discovery in the same terms: the app worked, or seemed to, every test passed, every review came back clean, and nothing had ever said that installation was not available. It records debugging on a physical device, the only context that exposed these bugs; it does not announce a product (the report).

The author traced the installation failure to the icon files after pursuing two incorrect theories. Export failures surfaced during the same debugging session (the report).

The report’s account of the icon bug is specific about what Chrome does with a declaration it cannot satisfy. It says Chrome checks that a PWA’s declared icons actually exist at the sizes it claims, that when they do not, nothing in the console warns about it and no error ever fires, and that the “Install app” option simply does not appear. It adds that “Add to Home Screen” still worked, but could only ever produce a bookmark shortcut; it did not install the app, so offline never worked either (the report).

MDN documents the manifest side of that check. It says Chromium-based browsers, including Google Chrome, Samsung Internet, and Microsoft Edge, require that the manifest includes name or short_name, a start_url, display and/or display_override, prefer_related_applications set to false or absent, and an icons member that must contain a 192px and a 512px icon. It also states that while service workers are not a requirement for a PWA to be installable, many PWAs use them to provide an offline experience, which is the order of dependency the report ran into from the other end (MDN, Making PWAs installable).

The icons reference adds the detail that makes a declared size load-bearing. MDN says for raster formats like PNG, specifying the exact available sizes is recommended, and that for vector formats like SVG, any can be used to indicate scalability. A sizes value is therefore a claim about the bytes on disk, and the report’s two files were the same claim with nothing behind it (MDN, icons).

Before anyone opened the icon files, the report states that two other explanations took the blame. The first was the browser: that DuckDuckGo’s PWA support might be incomplete. The second was the host: that something about how Namecheap served the files was the difference from the version that had worked on Netlify. The author reports that both theories were plausible and both were wrong, and that an earlier comparison between the two hosts had already been written up as “decisive, host-specific” (the report).

The browser theory was plausible for a documented reason. MDN says on Android the only browsers that install PWAs as WebAPKs are Chrome on devices with Google Mobile Services and Samsung Internet on Samsung devices, and that Firefox, Edge, Opera, and other browsers, including Chrome on devices where Google Mobile Services is not present, instead add a browser-badged home-screen shortcut that opens the site in the browser. A home-screen entry that behaves like a bookmark is thus an expected outcome on several Android browsers, independent of any icon bug, which is exactly what makes it a poor signal to debug against (MDN, Making PWAs installable).

The report’s resolution of the host theory is that the real difference was cache temperature; the host was not responsible. It says Netlify’s service-worker cache had been warm for months while Namecheap’s was cold, that the warm cache had quietly been hiding two unrelated bugs the whole time, and that what surfaced all three bugs at once was a fresh cache forcing every code path to run for real, on a real phone, for the first time (the report).

The report gives four export bugs and attributes all four to real-device testing. The first was a silent no-op when someone tapped “Download” on an Android phone in DuckDuckGo, because a CDN script, xlsx.full.min.js, that the service worker had not cached could fail to load without throwing anything visible. The fix for that introduced the second: the downloaded file came back as .bin instead of .xlsx, because the fallback download mechanism was not reliably setting the file’s MIME type on that browser, which the report fixed by building the download from an explicit Blob (the report).

The third is the one with a platform rule behind it. The author reports that the app reported “Downloaded” with nothing actually appearing, because the click handler waited on three IndexedDB round-trips before triggering the download, and that wait was long enough for the phone to quietly expire the tap’s permission to trigger one at all. Its fix was to pre-build the export the moment the screen opened, so the tap had almost nothing left to wait on (the report).

MDN’s definition of transient activation describes the state that expired. It says transient activation is a window state indicating that a user has recently directly and meaningfully interacted with the window, that the state is enabled following interactions such as a touchend event, that it expires after a timeout if not renewed by further interaction, and that it may also be consumed or deactivated after using some gated features. It also states that transient activation is commonly used as a mechanism for ensuring that a web API can only function if triggered by user interaction (MDN, Transient activation).

The report attributes the fourth bug to the platform and rules out the app. It says sharing the file to WhatsApp on Chrome for Android threw a permission error even though the browser’s own API had said sharing was possible, and that an A/B test settled why: a plain text file shared fine, while the identical share swapped to the real xlsx MIME type failed every time. The report’s reading is that Android Chrome’s own share implementation rejects the file type at the native layer, and that the fix catches that specific failure and falls back to the working download path; it does not work around the share rejection (the report).

MDN’s share() reference carries both halves of that shape. It says the promise may be rejected with NotAllowedError when a file share is being blocked due to security considerations, and with TypeError when files are specified but the implementation does not support file sharing. Under its list of usually shareable file types it gives .txt as text/plain, and it states that you should always test with navigator.canShare() if sharing would succeed (MDN, Navigator: share()).

Install failures and their significance for testing

Section titled “Install failures and their significance for testing”

The install failure produced no console warning or error event; the install option was missing. With no event to put a breakpoint on, the developer had little feedback. Two of the four export bugs also left no clues. The author found them by running each code path with a fresh cache on a real phone, after the test suite had passed (the report).

The documented requirements explain why a green build said so little here. MDN lists the manifest members Chromium-based browsers require, including a 192px and a 512px icon (MDN, Making PWAs installable), and the icons reference states that for raster formats like PNG the exact available sizes should be specified (MDN, icons). The author reports that Chrome checks that the declared icons actually exist at the sizes claimed, that nothing warns when they do not, and that its own rule is to verify the install flow on the device that performs it (the report).

The transient-activation case generalises further, because it has nothing to do with manifests. MDN says the activation state expires after a timeout if not renewed, and that it gates whether an API can function at all. Any handler that awaits storage, network, or worker round-trips before calling a gated API is therefore racing that timeout, and the report’s fix, moving the expensive work ahead of the tap, is the shape that follows from the definition (MDN, Transient activation).

  • Capabilities: follow this cross-reference alongside the report’s install-prompt failure and the manifest members MDN lists as required for a Chromium-based browser to promote a web app for installation.
  • Performance: the report’s third export bug exceeded a latency budget: three IndexedDB round-trips outlasted the tap’s transient activation, with no logic error involved; follow this cross-reference alongside that detail.
  • Storage: follow this cross-reference alongside the report’s account of a warm service-worker cache hiding two bugs for months, and of IndexedDB reads sitting on the critical path of a user gesture.
  • Which Chrome and Android versions the missing install option was observed on is not confirmed.
  • Whether Chrome’s installability check compares declared sizes against the decoded image dimensions, or only against the file being present and decodable, is not confirmed.
  • Whether a bundler, a linter, or a manifest schema validator could detect a declared icon size that the file behind it does not satisfy is not confirmed.
  • Whether any test harness can simulate the transient-activation timeout the report’s third export bug hit is not confirmed.
  • Whether a 68-byte one-pixel PNG would also fail the 192px and 512px requirement if the manifest declared it honestly as a one-pixel icon is not confirmed.
  • Whether the three IndexedDB round-trips exceeded a specific transient-activation timeout, and what that timeout is on the device in question, is not confirmed.
  • Whether Android Chrome’s rejection of the spreadsheet MIME type is a fixed allowlist, a version-specific behaviour, or a device-level policy is not confirmed.
  • Whether the two bugs the report says the warm Netlify cache had been hiding were the export bugs, the icon bug, or some combination is not confirmed.