# Does Glide know if it has been “Add to Home” or launched from the desktop not from a browser?

**URL:** <https://community.glideapps.com/t/does-glide-know-if-it-has-been-add-to-home-or-launched-from-the-desktop-not-from-a-browser/86361>\
**Category:** Ask for Help\
**Created:** [February 15, 2026, 8:12pm UTC](https://community.glideapps.com/t/does-glide-know-if-it-has-been-add-to-home-or-launched-from-the-desktop-not-from-a-browser/86361 "2026-02-15T20:12:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 16, 2026, 12:15am UTC](https://community.glideapps.com/t/does-glide-know-if-it-has-been-add-to-home-or-launched-from-the-desktop-not-from-a-browser/86361/2 "2026-02-16T00:15:37Z")

</div>

> [@Measure PWA installs](https://community.glideapps.com/t/measure-pwa-installs/58073/4):
>
> That post is almost 2 years old. We didn’t have the JavaScript column back then. Yes. In fact, simply copy/pasting that code that you linked to seems to do the trick: function getPWADisplayMode() { const isStandalone = window.matchMedia('(display-mode: standalone)').matches; if (document.referrer.startsWith('android-app://')) { return 'twa'; } else if (navigator.standalone || isStandalone) { return 'standalone'; } return 'browser'; } return getPWADisplayMode();

You can try this.

---

_[View the full topic](https://community.glideapps.com/t/does-glide-know-if-it-has-been-add-to-home-or-launched-from-the-desktop-not-from-a-browser/86361)._
