Discourse iOS app doesn't clear notifications until you return to the forum selection screen

AI-generated summary

The Discourse iOS app has an issue where notifications are not cleared from the app’s red badge count until the user returns to the forum selection screen. dfabulich reported the problem and provided steps to reproduce it. The expected behavior is for the badge count to update in real-time when notifications are cleared, but instead, it only updates when the user returns to the forum selection screen. IAmGav also experienced the issue, but didn’t report it. However, pmusaraj announced that a beta version of the iOS app with a fix for this issue is available for testing, and it requires the user’s Discourse site to be up-to-date.

I have a few forums configured in my Discourse iOS app, so they can all send me notifications. The Discourse app is on my home screen, so I see a red number there.

But there’s an annoying issue: the red number doesn’t clear itself when I clear the notification; I have to return to the forum selection screen to actually clear the notification.

To repro:

  1. Sign up for at least two forums in the Discourse iOS app.
  2. Receive a notification in one of them. (Now the app has a red number on it on the iOS home screen.)
  3. Tap on the Discourse iOS app. You’ll see the notification on one of your forums.
  4. Tap on the forum, then tap on the notification number in the upper right, and Dismiss All. Now you’ve cleared your notifications as far as Discourse is concerned.
  5. Without returning to the forum selection screen, push the iOS home button (or swipe up from the bottom) to return to the iOS home screen.

Expected: Since I’ve cleared my notifications on the forum, the app’s red number should go away.

Actual: The red number remains. If you tap on the app again, you’re back in the forum with no notifications. You have to use the down arrow in the lower-right corner to return to the forum selection screen, which then refreshes the notification list. Once the numbers on the forum selection screen are gone, then the red number goes away.

I wish instead that the forum’s WebView would/could notice that it’s being viewed inside the Discourse app; if the notifications are cleared in the forum, it should send a message to the app, inviting it to refresh that forum’s notification number in the background.

4 Likes

I have notice that as well, but never thought in reporting it.

Sometimes there is an delay in clearing the notification or new (x) notice

There’s a beta of the iOS app out with a fix for this issue: https://testflight.apple.com/join/5CUCQhCq

Note that your Discourse site also needs to be up to date, and the fix applies only to the “Dismiss” button in the user menu.

3 Likes

DiscourseHub 1.8.2 includes this feature and is now available in the App Store.