Detect if PWA Launched from Browser or as Installed App?

I thought I can get a “user-agent” html header to differentiate if user has installed the app through play store, or just accessed using chrome, is this achievable from Vaadin? I am receiving the same user-agent response for both,

Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Mobile Safari/537.36

Is your app installed? getInstalledRelatedApps() will tell you!  |  Articles  | says you can check it in JavaScript