linagora / tmail-flutter

A multi-platform (Flutter) application for reading your emails, with your favorite devices, using the JMAP protocol!
GNU Affero General Public License v3.0
299 stars 65 forks source link

Feature : detect loss of connection and suggest to refresh / reconnect #2928

Closed Facyla closed 1 week ago

Facyla commented 2 months ago

Description

Feature : detect loss of connection on web client and suggest to refresh / reconnect when this happens. This typically happens after computer sleep: when waking up the computer, the interface remains, without indicating that it cannot fetch content until one manually refreshes the page. It then redirects to the SSO, and finally back to the app (which is an attended behaviour).

Expected result

Whether display a message indicating that there is a loss of connection (or tokens are expired, or cannot join the server, or whatever happens indeed in that case), and offer the ability to take the appropriate action (ie. resfresh=>reconnect).

Current behavior

No indicator of the current state of the app. So no notification or warning or update of the mailbox content. However clicking in the interface triggers the login process and redirect to SSO.

Context

Web app.

hoangdat commented 2 months ago

DoD:

chibenwa commented 2 months ago

Hello Dat,

separate handling exception for mobile and web

I am unsure about this one to be honnest. Why would web need to be different than mobile ?

hoangdat commented 2 months ago

We should keep it separated to make it easier in maintenance. Mobile supports offline mode in more functions (sending email). But for sure, we need to have cross-check to make it less boilerplate.