Installed PWA: notifications lag after resolved

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?

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.

1 Like