Open NorthFred opened 1 year ago
Hello, I have the same issue, do you have any idea ?
Hello, I find solution.
I start and refresh MusicControls.create with isPlaying with false. So when I change cover or song information, musiccontrol pass Play to Stop and notification disapear.
So I store in variable, when I start, play, pause status of isPlaying
// Begin
var isPlayingStatus = false;
// Play
isPlayingStatus = true;
// MediaError
// Stop
isPlayingStatus = false;
// Refresh and create MusicControl
MusicControls.create({
...
isPlaying : isPlayingStatus,
....
}, this.MusicControllerSuccess, this.MusicControllerError);
I hope this help people ;)
With the implementation of the Android 11+ media style notification, the application's (custom) notification icon no longer gets shown in the status bar.