Topic was automatically imported from the old Question2Answer platform.
Asked By
SF123
I’m working on a music player app for my Android device, but once I go home or turn off the screen of the device the music stops…any way I could change that?
I have no idea, and I think you can’t, because it’s a game engine. App is designed to act like game, so the solution either doesn’t exist, either it requires you to write custom android plugin which is… tiresome
As far as I know, Godot projects can’t play background audio on iOS/Android because the OS will kill the app anytime it can to save
battery. You have no control over this – the “keep background app
alive” permission is not guaranteed to be 100% reliable.
A game engine isn’t meant to run in the background as it would eat
through the device’s battery very quickly.