The State Of Link Capturing in PWAs
How to open links with your PWA
Jul 23, 2025
One of the best features of native apps is that they can capture links within their scope to enable deep linking.
For example, when I have the Instagram app installed on my phone and someone sends me a link to an Instagram post and I click it, it will open the Instagram app instead of a browser.
PWAs also have this capability, but unfortunately, the story of where this works and when is a bit complicated. It differs on various OSes and browsers, so it’s not always easy to know when deep linking will work.
To help understand deep linking into PWAs, I tested all options, and here are my findings.
Web App link handling
Chromium-based browsers like Chrome and Edge support the handle_linksmember of the manifest.json file that enables PWAs to capture links within their scope, which simply means that the URL is within the scope as defined in manifest.json.
So when the scope of a PWA is “https://www.example.com/” and the URL of the clicked link is “https://www.example.com/foo”, then it will be captured by the PWA.
When a PWA wants to use this behavior, the handle_links member should be added to manifest.json:
"handle_links": "preferred"
The handle_links member can hold the following values:
- “preferred”: the user agent should handle links using matching PWAs and may promote link handling behavior.
- “not-preferred”: the user agent should not handle links using matching PWAs and may not promote link handling behavior.
- “auto”: default value if
handle_linksis not found in the manifest. The user agent may choose between “preferred” and “not-preferred”.
See the explainer for details.
I tested the behavior of this on all platforms in all major browsers by sending a link in an email to myself and then clicking that link.
Android
PWA installed with Chrome
When I click the link in the GMail app or in Chrome, it’s always opened in the PWA, even when Chrome is not the default browser.
When the email is opened in Edge through the GMail website and I click the link, it opens in Edge but also offers to open it in the PWA:

PWA installed with Edge
When I click the link in the GMail app, the link is not opened in the PWA but in an in-app browser powered by the default browser:

When the email is opened in any browser through the GMail website and I click it, it’s opened in the same browser the GMail website was opened with.
PWA installed with Firefox
Here, the behaviour is the same as when the PWA is installed with Edge: when I click the link in the GMail app, the link is not opened in the PWA but in an in-app browser powered by the default browser.
Conclusion for Android: capturing links clicked in other apps only works reliably when the PWA is installed with Chrome.
iOS
On iOS, there is unfortunately no support for deep linking. All clicked links open in the default browser, regardless of whether a PWA is installed and with which browser.
ChromeOS
On ChromeOS, the PWA can only be installed with Chrome, and deep linking works reliably.
macOS
PWA installed with Chrome
When I click the link in the Mail app, it opens in the default browser. When it’s opened in Chrome, it offers to open it in the PWA instead:

When I click the link on a website inside a Chrome tab that’s not the domain of the PWA, it opens in the PWA. Interestingly, there is an app setting in addition to handle_links to define if links should open in the app or Chrome.
You can access the app settings for a PWA by opening the PWA and clicking the triple-dot menu in the top-right corner, and then clicking “App Info”:

In the App Info menu, click Settings:

This will open a new tab in Chrome where you can set whether or not links should open in the app or Chrome:

Currently, this setting overrides handle_links when it has the value “preferred”, so when you set handle_links to “preferred” to open links in the app, but choose “Open in Chrome Browser” for this setting, links will no longer open in the app.
Even worse, when handle_links has the value “not-preferred” or “auto” or is not even present in manifest.json, links will always open in the browser and this setting has no effect.
To complicate matters further, when an in-scope link is opened in Chrome while the app (without handle_links in its manifest.json) is installed, a button will show in the address bar to open the link in the app instead:

When users click this button, the link will open in the app, and a dialog will show up to inform them that there is a setting to make links open in the app:

But unless handle_links has the value “preferred”, the setting has no effect, which is confusing.
When an installed app does have handle_links in its manifest.json and an in-scope link is opened in Chrome, the button to open the link in the app will also show in the address bar. When the user clicks this link and the app opens, a similar alert will show in the app to inform users of the link capturing setting:

When the email is opened in any browser other than Chrome through the GMail website and I click it, it’s opened in the same browser the GMail website was opened with.
PWA installed with Edge
When I click the link in the Mail app, it opens in the default browser. When it’s opened in Edge, it offers to open it in the PWA instead:

Web app added to Dock with Safari
When I click the link in the Mail app, it opens in the default browser. When it’s opened in Safari, it offers to open it in the web app added to the Dock instead:

But when the web app that was added to the Dock has been interacted with for a while, most notably, when it has been opened directly from the Dock at least once, clicked links open in the web app consistently.
On macOS, PWAs can’t be installed with Firefox.
Conclusion for macOS: capturing links clicked in other apps only works reliably when the web app is added to the Dock with Safari. Chrome can only capture links that are clicked in a Chrome browser tab.
Windows
PWA installed with Chrome
When installed with Chrome on Windows, the behavior is the same as on macOS, so in-scope links are captured when clicked in Chrome and handle_links has been added to manifest.json with the value “preferred” and it can be overridden in app settings in that case.
In-scope links clicked in other apps are not captured.
PWA installed with Edge
A PWA installed with Edge captures in-scope links when clicked in another tab in Edge but there is no setting to override this.
In-scope links clicked in other apps are not captured.
On Windows, PWAs can’t be installed with Firefox.
Conclusion for Windows: PWAs installed through Chrome and Edge can only capture links clicked inside browser tabs.
Push notifications
Another important feature for PWAs is to open the PWA when a push notification is clicked.
On iOS and Android, the installed PWA is consistently opened when a push notification is tapped, even when the PWA is not running at that moment. The notificationclick event is fired when the notification is tapped, so it can open a URL that is defined in the notification payload.
When no nofiticationclick event handler is defined and the notification is tapped, the URL defined in the start_url property of manifest.json is opened on iOS. On Android, nothing happens in this case.
In the following example, the URL to open is specified in the data property of the notification:
self.addEventListener('notificationclick', async (e) => {
//read the notification object from the event
const {notification} = e;
// read the data property of the notification
const {data} = notification;
// close the notification
notification.close();
// open the url specified in the "url" member of the data property
// this needs to be wrapped in the "waitUntil" method of the event
// to make sure the service worker stays active long enough
e.waitUntil(clients.openWindow(data.url))
});
Check https://whatpwacando.today/notifications for an example of the notification payload.