Protocol handling enables web apps to register their ability to open links with particular URL schemes, also known as protocols.
This means that a web app can for example register itself as an app that will open links like web+foo://bar.
In this case, the app will register the protocol web+foo as the protocol it can handle.
If a user chooses the web app as the default app to open links with this protocol, the web app will be opened when a link with this protocol is clicked.
pwa:
manifest:
enabled: true
protocol_handlers:
- protocol: "web+pwabundle"
placeholder: "type"
url:
path: "app_protocol_handler"
This will register the protocol web+pwabundle as the protocol it can handle.
The final URL will be https://example.com/path/?type=%s.
The placeholder %s will be replaced by the value of the link (e.g. web+pwabundle://geolocation or web+pwabundle://screen-capturing).