I managed to get it mostly working.
For some reason, Google decided to dubiously hide away the optimisation app settings in Android 14. The setting to change an app's battery management between optimised and unrestricted is still there. You need to tap on the part where it says 'Allow background useage' and then it brings you to the optimisation settings. When I changed it to unrestricted I was able to play music uninterrupted while my phone was locked, whereas previously it would disconnect.
In order to stop the connection from disconnecting while multi-tasking on the phone with Jellyfin streaming in the background, you need to change the following setting:
Network and internet > Adaptive connectivity - OFF.
Turning this off mostly solved the issue with some exceptions. I noticed that if I had certain apps open, it would cause the connection to drop out after around 10-15 seconds. The two main offenders are the official apps from ChatGPT and Reddit. On my phone, if these are open and running in the background, it will still cause connection drop outs.
I had no issues using Chrome, native phone apps, YouTube, Spotify, ClaudeAI and utility apps like calendar and sleep timers.
For some reason, Google decided to dubiously hide away the optimisation app settings in Android 14. The setting to change an app's battery management between optimised and unrestricted is still there. You need to tap on the part where it says 'Allow background useage' and then it brings you to the optimisation settings. When I changed it to unrestricted I was able to play music uninterrupted while my phone was locked, whereas previously it would disconnect.
In order to stop the connection from disconnecting while multi-tasking on the phone with Jellyfin streaming in the background, you need to change the following setting:
Network and internet > Adaptive connectivity - OFF.
Turning this off mostly solved the issue with some exceptions. I noticed that if I had certain apps open, it would cause the connection to drop out after around 10-15 seconds. The two main offenders are the official apps from ChatGPT and Reddit. On my phone, if these are open and running in the background, it will still cause connection drop outs.
I had no issues using Chrome, native phone apps, YouTube, Spotify, ClaudeAI and utility apps like calendar and sleep timers.