MetroList: startForegroundService for Background-safe Service Startup

Written by Alessio on 4/4/2026

Problem

Android 15 enforces stricter background service restrictions. MetroList's music service could fail to start when launched from background contexts without proper foreground service preparation.

Changes

Changed service startup to use startForegroundService() with appropriate notification for all background-triggered starts. Ensured service reaches foreground state within the required timeframe.

Result

MetroList works correctly on Android 15 with proper background service handling.

Commit: MetrolistGroup/Metrolist@ac7020a