Hello,
I’m working on an Android app in Unreal Engine 5.5 and need to ensure that background audio continues to play even when the app is minimized or the phone is locked (similar to Spotify’s behavior).
I have already configured the necessary background permissions in the AndroidManifest.xml
, including the FOREGROUND_SERVICE
permission. However, while the app builds and runs fine, the audio stops when the app is minimized or the phone is locked.
Here’s the relevant part of my AndroidManifest.xml
Here : uses-permission android:name=“android.permission.FOREGROUND_SERVICE” /.
The target API version is between 30 and 35, and I have tested the app on real devices. If anyone has experience with this or can provide guidance on ensuring continuous audio playback in the background, it would be a very great help!
Thanks a lot !