How to keep an app running in the background?

Hi! I’m trying to make a mobile app that keeps stuff like music running in the background even when you exit it. is this possible, and if it is how can I do it?

On which platform you are making game, iOs,flutter, Android?

Im going to make it for android

You have to run a service in your application class so that it run always in the background. Here is the documentation on how to do that.

Hope this helped.

1 Like