rgadellaa’s avatarrgadellaa’s Twitter Archive—№ 9,712

  1. …in reply to @mtomweb
    @mtomweb @briankardell @dfabu @thejohnjansen "display-mode: standalone" doesn't strictly check PWA (which generally has more requirements than just "manifest display standalone" and "added to home screen"). But imo, it signals that the user has chosen to use the website in standalone mode, and thus doesn't want the app?
    1. …in reply to @RGadellaa
      @mtomweb @briankardell @dfabu @thejohnjansen I've been using window.matchMedia('(display-mode: standalone)').matches || window.navigator.standalone) for a while and works great to detect if the web app is running in app-like mode.
      1. …in reply to @RGadellaa
        @mtomweb @briankardell @dfabu @thejohnjansen Note: it returns true if the website is running in a Chrome extension window but that also probably means the user doesn't need/want the app.