The discussion explores the implementation and benefits of Desktop Progressive Web Apps (PWAs) for Discourse, highlighting how users can install Discourse sites as standalone applications via Chrome flags. sam notes the convenience of launching Discourse as an app but suggests improvements like removing duplicate titles and unnecessary elements in PWA mode. Falco shares technical advancements, including offline browsing via Workbox and enhanced install prompts in Chrome 76 and later, with a demo site available. The topic also covers browser-specific features, such as Edge’s integration and theme customization, and addresses user concerns about missing prompts, which can be resolved by ensuring proper site configurations like a valid manifest and PNG logo. codinghorror and others contribute by confirming the feature’s availability in recent Chrome versions and discussing its evolving design. Overall, the discussion emphasizes the growing potential of PWAs as a lightweight alternative to Electron-based apps for Discourse.
Luckily we have window.matchMedia('(display-mode: standalone)').matches to detect if we are in this mode so its simple to make a component to clean this stuff up.
I meant on Discourse-hosted sites. I tried on Meta and the desktop app works perfect, but in our site https://brain.goodrebels.com/ the desktop app opens a new tab in Chrome. Perhaps we have to wait a bit for the latest update? or change some settings in /admin?
Yeah I get that, I would find this more useful if there was only 1 discourse site I visited and if the icon on the desktop taskbar updated with notifications. But, I float between lots of sites so for me there is more limited use unless I had an app to bind all my sites, and even then lack of tabs is a big pain.
For chat (eg slack, mattermost) I find this very useful which is why I actually started this research. If my job was to moderate a single Discourse site I would also find this useful.
So yeah, I do not think this will be for everyone, but for some it may be handy, especially if there was some value add in the taskbar.
I think it could work well, but it would take some additional work on the design of the UI. For instance, in Slack, you don’t need browser tabs because the navigation between channels is built into the app as a first class citizen. Maybe similar things could be done with theme components, where the UI could be designed within these new constraints.
That might work very well for many of our users who do fit into this mode for the most part:
Oh this topic was focusing on the ability to install Discourse in Desktops (which is no longer experimental).
The other one was mostly about the experimental Badging API. To use the Badging API you need to install to desktop, so this one here is a pre-requirement.
Yes but the tradeoff is that service worker adds a ton of support emails to our work.. did you want to whitelist the service worker for Chrome and Firefox or something like that @sam in addition to Android?