Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The getInstalledRelatedApps() method returns a promise that resolves with an array of objects representing any related platform-specific apps or Progressive Web Apps that the user has installed. This could be used for content personalization such as removing "install our app" banners from the web app if the platform-specific app and/or PWA is already installed.
Note: This method must be invoked in a top-level secure context, that is, not embedded in an <iframe>.
getInstalledRelatedApps() can be used to check for the installation of Universal Windows Platform (UWP) apps, Android apps, and PWAs that are related to the web app calling this method.
To associate the invoking web app with a platform-specific app or PWA, two things must be done:
related_applications member of its manifest file.Defining the relationship is done in a different way depending on the type of app:
related_applications manifest member, specifying the platform and id properties, in the case of a PWA checking in the same scope if it is installed on the underlying platform.assetlinks.json file in its /.well-known/ directory in the case of an app outside the scope of the PWA checking whether it is installed on Android.See Is your app installed? getInstalledRelatedApps() will tell you! for more details on how to handle each one of these cases.
Note: Most supporting browsers provide their own install UI when an installable PWA is detected, which won't appear if it is already installed — see Making PWAs installable > Installation from the web. This can be suppressed using the beforeinstallprompt event, which could also be combined with getInstalledRelatedApps() to suppress it based on a platform-specific app being available. See Trigger installation from your PWA for further useful information.
getInstalledRelatedApps()
None.
A Promise that fulfills with an array of objects representing any installed related apps. Each object can contain the following properties:
id OptionalA string representing the ID used to represent the application on the specified platform. The exact form of the string will vary by platform.
platformA string representing the platform (ecosystem or operating system) the related app is associated with. This can be:
"chrome_web_store": A Google Chrome Web Store app."play": A Google Play Store app."chromeos_play": A ChromeOS Play app."webapp": A Progressive Web App."windows": A Windows Store app."f-droid": An F-Droid app."amazon": An Amazon App Store app.url OptionalA string representing the URL associated with the app. This is usually where you can read information about it and install it.
version OptionalA string representing the related app's version.
The related app information must have been previously specified in the related_applications member of the invoking web app's manifest file.
InvalidStateError DOMException
The method was not invoked in a top-level browsing context.
const relatedApps = await navigator.getInstalledRelatedApps();
// Dump all the returned related apps into a table in the console
console.table(relatedApps);
// Search for a specific installed platform-specific app
const psApp = relatedApps.find((app) => app.id === "com.example.myapp");
if (psApp && doesVersionSendPushMessages(psApp.version)) {
// There's an installed platform-specific app that handles sending push messages
// No need to handle this via the web app
return;
}
Note: In this example, doesVersionSendPushMessages() is a theoretical developer-defined function; it is not provided by the browser.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
getInstalledRelatedApps |
85Supported on Windows for checking of Universal Windows Platform (UWP) app installation. Resolves with an empty array on other platforms.80–85Always resolves with an empty array. |
85Supported on Windows for checking of Universal Windows Platform (UWP) app installation. Resolves with an empty array on other platforms.80–85Always resolves with an empty array. |
No |
71Supported on Windows for checking of Universal Windows Platform (UWP) app installation. Resolves with an empty array on other platforms.67–71Always resolves with an empty array. |
No |
84Supports checking of Progressive Web App (PWA) installation.80–84Supports checking of Android app installation. |
No | No | No |
14.0Supports checking of Progressive Web App (PWA) installation.13.0–14.0Supports checking of Android app installation. |
No | No |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getInstalledRelatedApps