GoogleChromeLabs / bubblewrap

Bubblewrap is a Command Line Interface (CLI) that helps developers to create a Project for an Android application that launches an existing Progressive Web App (PWAs) using a Trusted Web Activity.
Apache License 2.0
2.36k stars 161 forks source link

twa manifest enhancement - launch_handler #803

Open alokbhat123 opened 1 year ago

alokbhat123 commented 1 year ago

Is your feature request related to a problem? Please describe. Request for addition of support for "launch_handler" in twa manifest json to bring it in parity with PWA.

The launch_handler feature in TWA will help control the number of instances of TWA application that gets opened in a given session.

Problem: Currently, a new TWA application instance gets opened everytime a handler URL is clicked on browser. Expectation: is to have a single instance of TWA application that handles multiple URL navigations. OS: ChromeOS

Describe the solution you'd like The support is already live for >= chrome 110 PWA. https://developer.chrome.com/docs/web-platform/launch-handler/ We can probably add same/similar key name for twa manifest json and give the same capability as that of PWA.