feat: connection recovery on mobile resume and endpoint exhaustion

This commit is contained in:
edde746
2026-02-14 22:11:00 +01:00
parent 0d72c6c1a4
commit 4fc98426ff
25 changed files with 270 additions and 39 deletions
+3
View File
@@ -236,6 +236,9 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
// App came back to foreground - trigger sync check and start new session
_offlineWatchSyncService.onAppResumed();
InAppReviewService.instance.startSession();
// Re-probe servers — mobile OS may have dropped TCP connections during doze/sleep
_serverManager.checkServerHealth();
_serverManager.reconnectOfflineServers();
case AppLifecycleState.paused:
case AppLifecycleState.detached:
// App went to background or is closing - end session