b729ccaa1e
(cherry picked from commit 67fca11fab87fda7dfc4915d372496dfe9df5f8b)
759 B
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