Re: [w3c/manifest] Way to detect if a web app is installed (Issue #1092)

DanielHerr left a comment (w3c/manifest#1092)

> Those compatibility concerns seem relatively minor, especially compared to the clear utility of being able to reliably detect if the app is running in a standalone window.
> 
> At the end of the day, this is a simple, practical flag developers want. If it behaves consistently (returns `true` when running in a PWA context, and `false` otherwise), that’s what matters.

I would be happy to have navigator.standalone or similar at the right time, but you illustrate the exact problem of shipping it first, as mentioned previously. In your first statement navigator.standalone would be false when running in a PWA as display: browser, but in your second statement it would be true. You are conflating running in a standalone window with running in an installed PWA context. Apple doesn't support running PWAs as display: browser, so it's not an issue there. But Chromium does support it, so it becomes a problem there. We therefore need `navigator.installed == true || false` or similar API of equal complexity to `navigator.standalone == true || false` to avoid improperly conflating these 2 distinct statuses.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/1092#issuecomment-3116333651
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/manifest/issues/1092/3116333651@github.com>

Received on Friday, 25 July 2025 04:19:19 UTC