From ba2d6bede1d72f5bf105dca2280db4f519ef049c Mon Sep 17 00:00:00 2001 From: MichD Date: Tue, 25 Jun 2024 22:51:22 +0100 Subject: [PATCH] Fix background playback stopping on Android 14 (#1412) * Fix background playback stopping on android 14 The service was not being properly started as a foreground service for media playback, causing playback stoppage after every track (or sooner for some folks), on android 14. Different vendors may be more aggressive with killing of non-foreground service etc, so people may have gotten different results. * Remove redundant fg service behavior, appease lint --- app/src/main/AndroidManifest.xml | 7 ++++++- .../org/jellyfin/mobile/bridge/NativeInterface.kt | 4 +++- .../jellyfin/mobile/webapp/RemotePlayerService.kt | 15 ++++++++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a8c004726..39533e909 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -67,7 +67,12 @@ - + + +