-
Notifications
You must be signed in to change notification settings - Fork 22
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 won't disappear #4
Comments
yes I know about this bug, unfortunately, I don't have time to solve it |
Do you have any insights into what is causing the bug. |
Ensure that you are using MediaSessionCompat to manage media playback in your app. Override onStop(): Override the onStop() method in your activity or service where media playback occurs. Inside this method, stop playback and release the media session. Also, cancel the notification associated with the media session. Here's a code snippet demonstrating how you can handle the onStop() method: Override this methiod Replace mediaSession with your actual MediaSessionCompat object and notificationId with the ID of the notification you want to cancel please check is it working for you |
When playing music and casting to a Chromecast device. When done playing the notification doesn't disappear and it nessesary to force close the app to make it go away.
The text was updated successfully, but these errors were encountered: