Is your app installed? getInstalledRelatedApps() will tell you!
The getInstalledRelatedApps() method allows your website to check whether your iOS/Android/desktop app or PWA is installed on a user's device. * Updated The getInstalledRelatedApps() makes it possible for your page to check if your mobile or desktop app, or in some cases, if your Progressive Web App (PWA) is already installed on a user's device, and allows you to customize the user experience if it is.
https://web.dev/get-installed-related-apps/