Regarding removing the Notification from Notification bar
Open
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
Assessment
This issue has not been assessed yet.