Rob--W / stackexchange-notifications

Realtime desktop notifications for Stack Exchange sites.
44 stars 8 forks source link

Notification counter not updated #25

Closed orschiro closed 8 years ago

orschiro commented 8 years ago

Dear @Rob--W,

For some reasons, the icon keeps showing me two new notifications that are already marked as read on stackexchange.

Any ideas?

Thankfully,

~Robert

image

Rob--W commented 8 years ago

I just tried, and it works.

Did you authenticate with the addon ("Grant Token" button)? The realtime notifications use WebSockets. But if you get a notification update while the WebSocket is down (e.g. when you get a notification, disconnect your computer from the internet and use your mobile phone to read the notification), then the extension is not notified of the change.

To counter that, you have to click on the "Grant Token" button. Then an oAuth dialog opens where you can log in with your Stack Exchange account. With this access, the extension can request the actual unread notification count when it discovers that the WebSocket is down.

orschiro commented 8 years ago

Hi Rob,

I checked the token settings and they all seem to be fine.

image

Could it be a problem related to a very slow internet connection?

I am currently using a very slow connection and maybe therefore the notifications are not properly being checked?

Strangely, the notifications are now synchronised again meaning that the icon does not display any new notifications anymore which indeed is the case because I checked all of them.

Well, for now I would say that my issue is solved.

I appreciate your advice though!

~Robert

Rob--W commented 8 years ago

Could it be a problem related to a very slow internet connection?

Having a slow network connection is not a problem, having an unstable on is (because then packets are dropped in an unrecoverable way). But I do expect the fallback logic to kick in and request the latest status (and since the issue is solved for now, it seems to work well).

orschiro commented 8 years ago

having an unstable on is

That's a good characterisation of my connection! It frequently disconnects.

However, for now it's working again.

Thank you for your help!

~Robert