Users discuss an issue where Discourse Hub on Android opens forum links in Chrome instead of their installed PWAs, even when the ‘Always open supported links’ setting is enabled. sam confirms this behavior is being addressed in a future update, with plans to eliminate Chrome tabs entirely and rely on PWAs for opening forums. pmusaraj shares a beta version (1.6.2) that triggers a browser prompt to open installed PWAs, and md-misko confirms it works well. Falco raises concerns about potential duplicate notifications if users have both the app and PWA enabled, but sam suggests disabling notifications in the app as a solution. The discussion highlights the desire for a simpler, more seamless experience using PWAs across Discourse forums.
I’m using many forums based on Discourse and the hub provides one convenient view of new replies and notifications across them all.
I usually open the hub, and then open a specific forum with new content, but since it is opened inside the hub I then have to navigate all the way back to the start page of the hub to access other forums.
If each forum opened in their corresponding PWA it would make navigation between different forums much easier.
I actually support this change cause we get to junk the whole chrome tab thing that people seem to dislike. It means the Android build of the app becomes simpler and has less moving parts.
@pmusaraj I am curious how simple it would be just to junk chrome tab? I recall @tgxworld showed me how slow chorme tab was compared to the PWA, it is not fun and simply opening a PWA if it exists and default browser if it does not seems like a far better default.
I think that’s easy to do, in fact we trigger a browser prompt now if Chrome isn’t installed. I have not tested with a PWA installed, curious to see if it picks that up automatically or if it still triggers the prompt.
A installed PWA via WebAPK will automatically register in the OS to handle URLs under the service worker scope. So it will work provided DiscourseHub doesn’t use webviews anymore and use normal links.
What about the push notifications? Users will see double notifications if they use both
I have posted a beta version (1.6.2) of DiscourseHub for Android that removes Chrome Custom Tabs and triggers a browser prompt, which in turn will display the installed PWA matching the site.
For push notifications, I have made no changes, I think users using both the app and its PWA will need to disable at the system level notifications for one of the two.