When I first used UserInbox add-on, I noticed that despite having a Timer every 3 second to update the message badge, it was not refreshing.
Later I found that the badge was refreshing sometimes but after a very long time.
So I made the attached test project with user-inbox add-on + a test timer that displays a notification each time it is called.
I found out that the test timer is working as intended, displaying a notification every 3 sec. But I do not understand why the timer updating messages badge does not.
I had the same issue when using a timer in our project to update graphs on a screen, it works twice then it stops to work.
timer.zip (78.8 KB)