Files
workavia-mail-front/docs/adr/0033-disable-work-manager-in-sending-email-automatically.md
T
Dat PHAM HOANG b729ccaa1e [Android][Disable work manager] ADR
(cherry picked from commit 67fca11fab87fda7dfc4915d372496dfe9df5f8b)
2024-01-12 05:13:30 +01:00

759 B

33. Disable work manager in sending email automatically

Date: 2024-01-12

Status

Accepted

Context

  • In some Wifi environments, network connection status not return the right value
  • We can not manage the schedule of sending email well (it depends on the Android scheduler)

Decision

  • Disable work manager in sending email automatically
  • The status of network in be check directly with InternetConnectionChecker.hasConnection
  Future<bool> hasInternetConnection() {
    return _internetConnectionChecker.hasConnection;
  }

Consequences

  • If user send message when network is not available, message will be cached and then
  • User can resend message manually when network is available
  • User can edit/delete cached messages