Unread/read messages not stored correctly on Android Chrome

AI-generated summary

The discussion addresses a bug affecting Android Chrome users where unread/read message states are not stored correctly, causing unread counts to fail to update, topics not being marked as read, and users being taken to incorrect post positions. The issue appears tied to Chrome v77 and is not reported in Brave (Chromium v76) or Opera. It’s reproducible but not 100%, and affects basic functionality on the Tappara.co forum. Falco confirmed a fix was implemented via commit 499472b, triggered by Chrome’s new API for inactive tabs on Android. The fix was backported to the stable branch by j.jaffeux. After deployment, early user reports indicate the issue is resolved. sam notes that closed topics can be reopened by moderators if needed. ljpp emphasized the severity and urged the fix’s inclusion in stable, which was approved.

Continuing discussion from an older topic where a number of issues were mixed up.

DISCLAIMER: As an iPhone user I rely on 2nd hand reports from users that are not professional SW testers.

Several user have raised an issue on our forum Tappara.co that read/unread messages are not stored correctly. Here are the breadcrumbs I have been able to gather.

  • So far an Android only issue
  • It seems likely that the issue has escalated with the Chrome v77 update. I have a fresh report from a trustworthy member that the issue started right after he updated.
    • Also we have reports from Brave and Opera users that they do not have this issue. Brave is currently on Chromium v76.
  • Symptoms:
    • Unread counts not updated
    • Topics not marked as read when expected to
    • When tapping on a topic the user is brought to an incorrect position to posts he has already read before
    • Refreshing the browser gives temporary relief, but the issue comes back soon.
    • Seems to be <100% reproducible, but reported by many different individuals.

This is a quite serious issue at our community right now as basic functionality is somewhat broken. We run on the stable branch – as of know I do not know whether this is repro on Meta or Try (I use iOS..). @Falco should have some idea about this and asked to open this topic.

Ping @rizka

Forgot to update you there, we landed a proper fix last week at FIX: change focus when application resumes in android · discourse/discourse@499472b · GitHub

This was a Chrome 77 change, and is triggered if a Discourse tab is inactive (in background or using another app in Android) for more than 5 minutes.

Chrome pushed this new API for Android for now, but it will be pushed for all platforms in new updates.

4 Likes

Ok, cool!

This should be a candidate for the stable brach too (basic functionality broken).

Sure we can back port it to stable @Falco?

4 Likes

Backported to stable:

8 Likes

Just a quick update, since the topic is closing a bit too soon. We pushed this to production an hour ago and already a handful of users have reported early impressions that the fix seems to solve the issue.

Developers, developers, developers! (c) Steve Ballmer

2 Likes

This topic was automatically closed after 4 days. New replies are no longer allowed.

Note if a topic closes it does not mean it is closed forever and ever, we have a feature that allows moderators to open closed topics

If a topic is closed by mistake flag it