Re: [w3c/manifest] Add a manifest option for the declaration of the web application running pattern (Issue #1019)

Sorry for late reply, this is a complex thing to resolve.

I think the desired singleton behaviour relates more to link capturing than `launch_handler`. I think you want to say "all navigations into the app scope will be treated as an app launch" after which `launch_handler` can kick in with `existing-client-*` and direct the launch into an existing window.

I don't think this behaviour is something we'd implement in Chromium as we want the user to be in full control over link capturing rather than developers however other user agents may be okay with implementing "singleton" style link capturing.
Coincidentally Microsoft is pursuing a `handle_links` member to specify a developer preference for capturing links: https://github.com/WICG/pwa-url-handler/blob/main/handle_links/explainer.md#proposed-solution
(@LuHuangMSFT FYI)

You could probably get "singleton" like behaviour with this in your manifest:
```json
{
  "handle_links": "always",
  "launch_handler": {
    "route_to": "existing-client-retain"
  }
}
```

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

Message ID: <w3c/manifest/issues/1019/1135479534@github.com>

Received on Tuesday, 24 May 2022 06:52:23 UTC