mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 16:33:27 +00:00
AlwaysOnNotificationServiceManager calls NotificationRelayService.start() from a flow collector that can fire during cold-start (before the activity reaches foreground), where Android 12+ blocks startForegroundService() with ForegroundServiceStartNotAllowedException. The exception was already caught but logged as an error. - Distinguish ForegroundServiceStartNotAllowedException from real failures and log it at WARN — the other layers (boot receiver, watchdog alarm, catch-up worker) retry from contexts that have FGS exemption. - Retry the start in MainActivity.onResume() so the service comes up as soon as the user opens the app.