keyboard_backspace wifi_off

Link Handling

This feature is not (yet) supported on your device

Link handling enables a PWA to open links instead of the user's default browser. A PWA can only open links within its scope, meaning URLs within its domain.

To open links, a PWA needs to have the handle_links property of its manifest.json set. This property can take three values:

  • “preferred”: the link will be opened by the PWA
  • “not-preferred”: the link will not be opened by the PWA
  • “auto”: default value if handle_links is not found in the manifest. The user agent may choose between “preferred” and “not-preferred”.

Demo

Install this PWA through Chrome on Android or add it to the Dock on macOS through Safari and send the link https://whatpwacando.today/link-handling (or any other link in this web app) to yourself in an email and then click that link. It should now open in the PWA instead of your default browser.

You may need to interact a few times with the installed PWA first before the link will be opened in it.

// manifest.json "handle_links": "preferred"

Documentation

Link handling explainer.

Browser support

Link handling is supported in PWAs installed through Chrome on Android and PWAs added to the Dock through Safari on macOS. Safari on macOS does not officially support handle_links but PWAs added to the Dock always open links within their scope.

What PWA Can Do Today A showcase of what is possible with Progressive Web Apps today