androidx / androidx/media

Notification dismiss callback question

Open
#1,733 1 comment 1 reaction 1 assignee View on GitHub

@marcbaechinger is already working on this.

Since Sep 17, 2024.

question
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Hello, I have an issue with notifications in Media3 (v1.4.1). I'm using it to play audio media items using HLS with the built-in notification system of Media3 to show notifications with custom actions when items are playing.
With this built-in notification feature, I would like to get a callback to know when the user is dismissing the notification manually.
I use the PlayerNotificationManager class attached to my player but for some reason, the onNotificationCancelled function is not called when I manually dismiss the player notification. Do you know what might be missing?
Device: Pixel 8, Android 14

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.