google / google/ExoPlayer

Regarding removing the Notification from Notification bar

Open
#11,016 2 comments 0 reactions 1 assignee Claimed by @marcbaechinger View on GitHub
question
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Hi Team,

I need to show one notification while User is locking the device. I am using PlayerNotificationManager and MediaSessionConnector for showing the notification and setting the controls like seekbar, play/pause. Everything is working fine. I need to remove the notification from the notificationbar when User is coming back from that fragment as I don't want to display it to user anymore.

I have tried to cancel the Notification with following ways:
notificationManager.setPlayer(null)
cancel (Notification_id)

Nothing seems to work, can you please suggest something?

Regards,
Rohit Garg

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.