const installedApps = await navigator.getInstalledRelatedApps()
const packageId = "com.app.pwa"
const app = installedApps.find(app => app.id === packageId)
if (app) {
console.log(`${app.id} version ${app.version} is installed`)
}
For mac:
<meta name="apple-itnues-app" content="app-id=com.myapp.pwa">
<meta name="apple-itunes-app" content="app-id=com.myapp.pwa,app-argument=myapp.com/deep/link">
<meta name="apple-itunes-app" content="app-clip-bundle-id=com.myapp.pwa">
标签:information,const,Get,app,related,installed From: https://www.cnblogs.com/Answer1215/p/17606116.html