Installed PWA: notifications lag after resolved

AI-generated summary

ecki reports experiencing a lag with unread badge notifications on a self-hosted Discourse PWA (Progressive Web App) on iOS. The badge often indicates unread messages even when none exist, and it takes time to resolve, even after refreshing or changing categories. ecki suspects that admin actions or pending updates might be causing the issue since they don’t have direct access to the /admin URL from the PWA. Falco clarifies that the badge appears when there are unread notifications or pending review queue items. Ultimately, ecki concludes the problem likely stems from their admin settings/filter and suggests a separate badge for admin categories as a potential improvement, but believes it’s an isolated issue and suggests closing the topic.

The Discourse front-end installed as a iOS bookmark/webapp is an excellent mobile client. However more often than not, I open it because it has a red unread badge, but there are no unread articles (in the menu).

I tried then to change categories, even terminate the browser app or refresh, but it always takes quite a while for the badge to disappear (or to actual unread content to show up :slight_smile:

The discourse in question is a docker self hosted installation with separate db and redis container. Anything I can provide to debug this?

1 Like

Maybe I have an suspect, is that badge also showing Admin actions (like pending updates). From the internet I don’t have access to the /admin url so I can’t see pending stuff there but it might be there.

If that’s a likely candidate it’s maybe not a bug but an issue with my specific setup. (An setting to not notify with the PWA and n admin stuff would be a dream then). Any idea if I can call an api endpoint to see what’s pending?

It will show when either there are unread notifications or pending review queue items.

2 Likes

Yeah the problem is most likely my /admin filter. Maybe a badge in the admin category would make that more clear, but I guess its not a general problem others have, so can be closed.