Push notifications opening in wrong window
-
The web-push plugin enables push notifications for local users in NodeBB, and while the experience is as seamless as I can make it (the end user really only has to toggle one switch, it's amazing!), there are still some minor rough edges if you don't use the mainstream browsers.
One bug that really bothered me was that even though one could add an app to the home screen on mobile (Firefox removed the "install" option back in 2021), push notifications delivered to the device wouldn't ever open that site-specific browser, but instead open the main window.
So in essence, the push notification would never bring you to the site you wanted to visit. Ouch!
I thought maybe this was just a growing pain of the PWA ecosystem, but imagine my surprise when I attempted to install the NodeBB Community using Chrome, and it just worked, added the icon, there was full masked badge support on Android, and push notifications opened in the correct "app".
Firefox seems to have just that last 10% to go for better PWA support... and even though that last 10% does take 90% of the time, it just seems like it won't ever be prioritized. Let's hope I'm wrong about that...!