-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
31 additions
and
19 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
docs/adr/0033-disable-work-manager-in-sending-email-automatically.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# 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` | ||
```dart | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters