- 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.
427 KiB
470x552px
427 KiB
470x552px
