tmail-flutter icon indicating copy to clipboard operation
tmail-flutter copied to clipboard

Real time updates for web are broken

Open chibenwa opened this issue 1 year ago • 16 comments

Description

Manual refresh needed for web.

Expected result

I expect FCM to be able to refresh also web without manual refresh

Current behavior

https://github.com/linagora/tmail-flutter/assets/6928740/23f300fb-aa91-41b0-ab5a-3fc2e24e6e95

chibenwa avatar Jan 16 '24 14:01 chibenwa

It was fixed with the release v0.11.3. I though you not get full update of the main.dart.js, please use ctrl+F5 to test it again

hoangdat avatar Jan 16 '24 14:01 hoangdat

It was fixed with the release v0.11.3. I though you not get full update of the main.dart.js, please use ctrl+F5 to test it again

Nope.

I tried 2 different browser, even in incognito mode.

No luck!

chibenwa avatar Jan 16 '24 15:01 chibenwa

Please NEEDED for a customer

chibenwa avatar Feb 02 '24 09:02 chibenwa

  • [x] some commits on back-end side to handle expired token should be backport
  • [ ] cherry pick this in #2483 also to v0.11.3-patchx

hoangdat avatar Feb 02 '24 10:02 hoangdat

cherry pick this in https://github.com/linagora/tmail-flutter/pull/2483 also to v0.11.3-patchx

Done in v0.11.3-patch5

some commits on back-end side to handle expired token should be backport

Already part of the release

311057fb [FCM] Set alert for the APN message
b224a401 fixup! ISSUE-870 Enable mutable-content for APNS notification
a4608b7e ISSUE-870 Enable mutable-content for APNS notification
40f7de5c ISSUE-870 FirebaseSubscription/get should return expired subscriptions (#872)

chibenwa avatar Feb 02 '24 12:02 chibenwa

I deployed v0.11.3-patch5 on prod.

Still not working

chibenwa avatar Feb 02 '24 14:02 chibenwa

ok, let us test, firebase token not easy to regenerate.

hoangdat avatar Feb 02 '24 15:02 hoangdat

Not yet passed on tmail.linagora.com & canary-tmail.linagora.com 0.11.3

https://github.com/linagora/tmail-flutter/assets/124866146/db09eec1-c9cd-461d-ade5-179ff83b8bf3

QuangHoang1210 avatar Feb 20 '24 12:02 QuangHoang1210

Desc:

  • customer app work well in the case web app in foreground (active tab)
  • customer app not have realtime update in the case web app in background (still open tmail tab, but focus on other tab)

hoangdat avatar Mar 12 '24 02:03 hoangdat