navigator.getInstalledRelatedApps() is empty on Chrome in Windows 11

16 hours ago 3
ARTICLE AD BOX

Something must be missing, but I just don't know what. Because the installed web app should be listed in the array when calling navigator.getInstalledRelatedApps() but the array is just empty.

Chrome (146.0.7680.178) Windows 11 Console Output

On https://www.swisswebcams.ch/ (with installed web app)

enter image description here

Call in Web App

if('getInstalledRelatedApps' in navigator) navigator.getInstalledRelatedApps().then(apps => console.warn(apps));

Assetlink

https://www.swisswebcams.ch/.well-known/assetlinks.json

[ { "relation": ["delegate_permission/common.handle_all_urls"], "target": { "namespace": "web", "site": "https://www.swisswebcams.ch" } } ]

Is this even needed for navigator.getInstalledRelatedApps() to work?

Manifest

https://www.swisswebcams.ch/_new/manifest.json

{ "icons": [ { "src": "/_new/img/og.png", "sizes": "256x256" } ], "id": "/", "display": "fullscreen", "name": "SwissWebcams", "protocol_handlers": [ { "protocol": "web+swc", "url": "/?referrer=%s" } ], "related_applications": [ { "id": "https://www.swisswebcams.ch/", "platform": "webapp", "url": "/_new/manifest.json" } ], "scope": "/", "short_name": "Webcams", "start_url": "/?version=1.0.0", "version": "1.0.0" }
Read Entire Article