v2.55.2 — Manueller Sync: Status-Popup, Hintergrund-Weiterlauf, Sperrbildschirm-Notification

- cloud_screen.dart: Sync-Popup mit Live-Fortschritt („12/325 synchronisiert"),
  „Im Hintergrund fortsetzen"-Button, Ergebnis-Snackbar nach Abschluss
- sync_service.dart: Notification-Kanal auf HIGH + Visibility.public,
  Foreground-Service starten/stoppen während Sync (Display-aus-Garantie),
  statische syncNotificationDetails() für Tests
- main.dart: Sync-Channel-Importance auf HIGH (überschreibt alte low-Einstellung)
- Tests: +7 (syncNotificationDetails HIGH/public, Lifecycle-Unabhängigkeit)
This commit is contained in:
Dustin
2026-08-06 18:11:41 +02:00
parent b4d63509d1
commit 7777297073
4 changed files with 323 additions and 32 deletions
+4 -1
View File
@@ -60,11 +60,14 @@ void main() async {
?.createNotificationChannel(downloadChannel);
// Notification-Channel für den Cloud-Sync (Fortschritt + Abschluss)
// v2.55.2: Importance HIGH + Visibility public für Sperrbildschirm + Shadow.
// createNotificationChannel überschreibt bestehende Channel-Settings —
// ein alter Kanal mit low-Importance wird beim nächsten App-Start korrigiert.
const syncChannel = AndroidNotificationChannel(
'de.baka.melo.sync',
'Melo Sync',
description: 'Cloud-Sync-Fortschritt und Abschluss',
importance: Importance.low,
importance: Importance.high,
playSound: false,
enableVibration: false,
);