Open the browser console to view verbose logging.
This web app displays custom installation toast immediately after opening (for demo purposes). This is an anti-pattern! Please don't do this.
This web app doesn't display custom installation toast and disables the "Install" button if the related app is installed. This is a best practice.
Install available:
Install platforms:
Choice result outcome:
Choice result platform:
Get installed related apps supported:
Install this PWA to see how getInstalledRelatedApps()
works when the expected WebAPK is installed.
Install demo app to see how getInstalledRelatedApps()
works when the expected TWA / native app is installed.
Installed related apps: