Media session notification being bumped to front even when not in use

Issue description:

Hello,

The intended behaviour in Android is that the last played media is the first displayed in the media session panel. Due to Symfonium repeatedly sending a notification, it will be bumped back up to first in the panel even if it was not the last played source, or if another media source is still playing. This is obviously counter intuitive, inconvient and confusing for the user.

In the screenshots attached of my notification history you can see that I listened to Spotify most recently, but Symfonium has sent many notifications since even though it’s state hasn’t changed (I haven’t played any media or changed song). This leads to the Symfonium notification being first in the panel.



This is Android 12, Symfonium 11.4 b6

EDIT: Here is a more dramatic example of when the behaviour is incorrect.
In this example I am listening to a Youtube video. I leave the Youtube video playing and do not open Symfonium or interact with the application or it’s notification. At first, the Youtube video is the top notification in the media session. After a few minutes, Symfonium sends a notification and takes over the top spot, so when I swipe down to control my currently playing media (Youtube), I am instead presented with a different, non-playing app. I have added a last screenshot to show the Youtube video is still playing while it is in second spot (indicated by the second dot being highlighted.)




Edit 2: I’ve started a new thread as you’ve asked, and uploaded a bug report immediately after a notification got sent while the phone wasn’t being used at all or any media playing (nottification history shows this:

)

Thank you

Logs:

Upload description: tobyburton96

Additional information:

 

 

Reproduction steps:

 

 

Media provider:

Local device

Screenshots:

     

You are mixing things, notifications and media sessions are fully unrelated.

You can easily hide all the notifications that only says Symfonium, they are required by Google but useless

For the media session your device kills Symfonium and restart it, so the paused media session is updated, but it’s never active, so can’t be pushed as first else music would stop on the other apps.

Hi Tolriq, thanks for the reply.

The ‘symfonium’ notification is no problem, it is the media session issue I am concerned about.

I’m not sure I understand what you mean by “it can’t be pushed as first”, as I am definitely seeing it moving back up the media session list at the same time as reported in the notification history app, which I assume is when the app is restarted. It does not interrupt media playing in other apps at the time.

I have no further way of stopping the app being killed unfortunately, all battery settings are on unrestricted. I did not see this behaviour (the bumping up the media session list) until the last few versions of Symfonium (I’m sorry I cannot be more precise), and I do not see it with any other apps.

If you have any ideas I would appreciate it greatly. As you can see in the screenshots it’s very irregular and inconvenient behaviour.

Thank you as always

If it’s new it would have been better to report when it occurred to know what changed :slight_smile:

The only recent change I can think of was the publication of the buffering state, but this should not change anything and does not on my devices.

Probably something special on your device, will try to not push the buffering state on state restoration in case this fix your case, but no other ideas.

1 Like

Is it fixed ?I bla bla

I think so!! Will update if any more problems. Thank you!