transistor icon indicating copy to clipboard operation
transistor copied to clipboard

Do not "autostart" or show notification at startup

Open ghost opened this issue 4 years ago • 7 comments

Is your feature request related to a problem? Please describe. Description of what the problem is. Example: I'm always frustrated when [...]

If I restart my phone, an application notification is shown. The stream is not playing, there are only one play button. I do not know what does this indicate, if there is actually communication or stream (I would assume there isn't). I can just swipe the notification away.

Describe the solution you'd like Description of what you want to happen.

I guess this all means, that the application autostarts, please do not.

Describe alternatives you've considered Description of any alternative solutions or features you've considered, if so.

Additional context Add any other context or screenshots about the feature request here.

ghost avatar Jan 02 '22 21:01 ghost

Hi @Etim-Orb and happy 2022.

I think this maybe the behavior desired by the Android platform.

Playing nicely with media controls

After booting, Android will look for recent media apps and ask them what their most recently played content was. It will then create media controls for that content.

I must admit that I implemented the feature more or less by accident :-) while I was adjusting the Transistor for Android 11.

I am (honestly) not sure if I really should remove it, if Android media apps are supposed to work like this.

BTW. Can you post a screenshot of the notification?

y20k avatar Jan 03 '22 20:01 y20k

image8

This is the expanded notification.

ghost avatar Jan 03 '22 20:01 ghost

I just came here to report this but saw that someone already had.

I have a LOT of media apps installed as I'm still evaluating which ones I want to settle on. However, after reboot Transistor is the ONLY one that auto-starts and exhibits the behavior the OP described. I got additional frustration when I went into Settings and could not find a way to disable this.

sremick avatar Jan 22 '22 03:01 sremick

I reverted the "Media resumption" behavior for the next release. You were right. It is more annoying than useful.

y20k avatar Jan 27 '22 14:01 y20k

Actually I have not yet fixed the issue. I gave it another try but was not able to find the cause yet.

y20k avatar Feb 01 '22 20:02 y20k

A short update on this issue. I am still not able not find the cause for this bug. I opened a bug report / request for assistance in the ExoPlayer issue tracker. See: https://github.com/google/ExoPlayer/issues/9921

(ExoPlayer is the library that Transistor uses for playback and notification handling.)

y20k avatar Feb 23 '22 17:02 y20k

Good news. Over at the ExoPlayer issue tracker I got a VERY helpful hint on what the problem was. The problem is solved and the solution will be part of the next release.

y20k avatar Mar 02 '22 16:03 y20k