Music app stops playing when switching to the background

Music app stops playing when switching to the background

In apps that play music or music files, if you move to the home screen or run another app while the app is running, the music playback stops.

Our app does not have the code to stop playing when switching to the background.

We are guessing that some people experience this and others do not.

We usually guide users to reboot their devices and try again.

How can this phenomenon be improved in the code?

Or is this a bug or error in the OS?

What OS is this?

What do you mean by the app going into the background - do you mean when it's no longer the foreground app (or you've gone to the Home Screen); or that the app has actually gone into background mode?

You need to debug your app and see what's happening at each stage of the app's lifecycle.

Music app stops playing when switching to the background
 
 
Q