Files
eranos/android
Chad Curtis 341d9764b4 Fix crash: catch ForegroundServiceStartNotAllowedException in notification service
Android 16 (targetSdk 36) enforces strict time limits on dataSync
foreground services. When the limit is exhausted, calling startForeground()
or startForegroundService() throws ForegroundServiceStartNotAllowedException
and kills the app. Catch the exception in both NotificationRelayService.onCreate()
and MainActivity.onCreate() so the app continues running; the AlarmManager
will reschedule the next fetch cycle at the normal interval.
2026-03-16 01:42:50 -05:00
..
2026-02-19 06:18:02 -06:00
2026-02-19 07:58:45 -06:00
2026-02-19 06:18:02 -06:00