1 Commits

Author SHA1 Message Date
bf914f291d Feat: Implémentation Notifications Périodiques via Service
- Ajout permission POST_NOTIFICATIONS et déclaration NotificationService dans Manifest.
- Création NotificationHelper pour centraliser création canal et affichage notifications.
- Création NotificationService utilisant Handler/postDelayed pour simuler l'envoi
  périodique de rappels (HighScore, Inactivité) - NOTE: WorkManager recommandé en prod.
- Modification MainActivity:
  - Crée le canal via NotificationHelper.
  - Gère la demande de permission POST_NOTIFICATIONS (Android 13+) via ActivityResultLauncher,
    déclenchée par le switch dans les paramètres.
  - Démarre/Arrête NotificationService en fonction de l'état du switch Notifications.
  - Sauvegarde le timestamp de dernière partie jouée dans onPause.
  - Utilise NotificationHelper pour afficher la notification d'accomplissement (2048).
  - Suppression des méthodes/boutons de test de notification.
2025-04-04 15:58:02 +02:00