Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification icon is no longer shown in the Status Bar (Android) #95

Open
NorthFred opened this issue Apr 11, 2023 · 2 comments
Open

Notification icon is no longer shown in the Status Bar (Android) #95

NorthFred opened this issue Apr 11, 2023 · 2 comments

Comments

@NorthFred
Copy link

With the implementation of the Android 11+ media style notification, the application's (custom) notification icon no longer gets shown in the status bar.

@romain25
Copy link

Hello, I have the same issue, do you have any idea ?

@romain25
Copy link

romain25 commented May 25, 2023

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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants