Cannot play music in background

Hello everyone …need a little help
I’m creating a music player app --music stops when pressed home button any quick fixed ?? How can i make my app to run even in background?

2 Likes

As I know this website (as others based on MIT) doesn’t support background.
I’ve once made a torch app that worked in background only until it was in the recent apps…
I think that for now there won’t be any app that will work in background.

1 Like

But, In kodular. Exoplayer can play music in background too. That means until you kill the app.

4 Likes

Try working with arrangements instead of screens.

What do you mean? Can a elaborate a bit please

Instead of implementing the player in Screen2, you can do everything just in Screen1. For example, you can use the View Pager Component and use Vertical Arrangements as screens (First tab “Home” and second tab "Player’). This way you can set the Play Only In Foreground option off and the player will continue playing in background.

1 Like

@techopera99, test this AIA file as an example.

MusicPlayerScreens.aia (2,7,KB)

2 Likes

Does anybody know which version of ExoPlayer (2.x.x) is currently being used by Kodular?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.