Per: Unread tab does not update after reading
There were quite a few people mentioning issues with topics not being marked read on Android.
We have done some root cause analysis and found that the page visibility api changed the way it operates in Android Chrome 77.
It was discussed in brief here:
https://github.com/pgilad/react-page-visibility/issues/9
There is a fancy graph that explains the new lifecycle here:
The symptoms of the issue is.
-
You use your android
-
You flip to do something else for 5-10 minutes
-
You flip back to Discourse and nothing is marked read anymore
I made a fix for this here:
https://github.com/discourse/discourse/commit/499472b6a0e9bd0cef4539287e9845476938cf01
In “theory” it should resolve the issue.
cc @mcwumbly / @Heather_Dudley / @Yuun
This fix will be deployed on meta shortly, you will have to do a full reload to get it applied.