Skip to content

Handle BackgroundServiceStartNotAllowedException when starting MusicS…#1936

Merged
theovilardo merged 1 commit into
masterfrom
fix/background-service-start-not-allowed-crash
May 8, 2026
Merged

Handle BackgroundServiceStartNotAllowedException when starting MusicS…#1936
theovilardo merged 1 commit into
masterfrom
fix/background-service-start-not-allowed-crash

Conversation

@theovilardo

Copy link
Copy Markdown
Collaborator

…ervice

Add a catch block for BackgroundServiceStartNotAllowedException in MusicService to prevent crashes when startForegroundService is called while the app is in a background-cached state. This ensures the service fails gracefully when background execution limits are enforced.

…ervice

Add a catch block for `BackgroundServiceStartNotAllowedException` in `MusicService` to prevent crashes when `startForegroundService` is called while the app is in a background-cached state. This ensures the service fails gracefully when background execution limits are enforced.
@theovilardo theovilardo merged commit 94c8303 into master May 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant