Intent to Experiment: Web app launch handler

255 views
Skip to first unread message

Alan Cutter

unread,
Oct 27, 2021, 4:55:54 AM10/27/21
to blink-dev

Contact emails

alanc...@chromium.orgmgi...@chromium.org

Explainer

https://github.com/WICG/sw-launch/blob/main/launch_handler.md


Summary

Adds a "launch_handler" app manifest member that enables web apps to customise their launch behaviour across all types of app launch triggers. Example usage: { "name": "Example app", "start_url": "/index.html", "launch_handler": { "route_to": "existing", "navigate_existing_client": "always" } } This will cause all launches of the Example app to focus an existing app window and navigate it (if it exists) instead of always launching a new app window.



Blink component

Blink>AppManifest

Search tags

web apppwalink capturinglink handlinglaunch

TAG review

https://github.com/w3ctag/design-reviews/issues/683

TAG review status

Pending

Risks



Interoperability and Compatibility



Gecko: No signal

WebKit:

Web developers: Strong positive signals on the Declarative Link Capturing origin trial which has overlapping behaviour with this API (which is replacing DLC).


Goals for experimentation

Replace the Declarative Link Capturing API experiment and gather feedback on the "navigate_existing_client": "never" behaviour as it gets an implementation.

Ongoing technical constraints

Overlap with the Declarative Link Capturing origin trial to enable existing clients to migrate over to this new API.


Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Windows, Mac, Linux and Chrome OS.

Is this feature fully tested by web-platform-tests?

No, this requires browser tests.

Flag name

WebAppEnableLaunchHandler
chrome://flags/#enable-desktop-pwas-launch-handler

Requires code in //chrome?

True

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1231886

Launch bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1247817

Estimated milestones

M97



Link to entry on the Chrome Platform Status

https://www.chromestatus.com/feature/5722383233056768

Links to previous Intent discussions

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/8tNe2jrJ78A


This intent message was generated by Chrome Platform Status.

Chris Harrelson

unread,
Nov 4, 2021, 3:16:21 PM11/4/21
to Alan Cutter, blink-dev
LGTM, but is this only in M97? Or did you want to run it for additional milestones?

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CANJJ2Cm5RFDLAf7n5eRhgHbgioCUe8uv16Sh5v5BSoMgSdKJrw%40mail.gmail.com.

Alan Cutter

unread,
Nov 9, 2021, 1:41:46 AM11/9/21
to Chris Harrelson, blink-dev
My mistake!
Requesting 6 month origin trial: M97 to M102 inclusive.

Chris Harrelson

unread,
Nov 9, 2021, 3:03:08 PM11/9/21
to Alan Cutter, blink-dev
Reply all
Reply to author
Forward
0 new messages