Forum Discussion

Noel Burgess's avatar
Noel Burgess
Iron Contributor
Mar 08, 2021

Click URL to open PWA automatically

There is a flag in Canary 90.0.817.0 that I had high hopes for:

Desktop PWA URL handling

Enable web app manifests to declare URL handling behavior. Prototype implementation of: https://github.com/WICG/pwa-url-handler/blob/master/explainer.md  Mac, Windows, Linux

#enable-desktop-pwas-url-handling 

 

Its my understanding that so long as a PWA's manifest contains the right entries, with this flag enabled, clicking on a specific link should automatically open the URL in the appropriate PWA rather than in the browser.  So far, it doesn't, at least for a Twitter PWA. I tried two different ones: the one offered by an icon in the address bar at twitter.com, and the other installed by using Edge's Install this site as an app option which is apparently the same.

 

I noticed some differences between elements in the app's manifest and the ones specified in the GitHub explainer, for example:

 

"display_mode"

"display"

"url_handlers":[{"origin":"twitter.com"}]

"url_handlers": {"scope": {"matches": [ "https://twitter.com/*" ]}

 

 

How do we make this work?

 

2 Replies

Resources