androidx / androidx/media

Stop MediaSessionService when the notification is deleted

Open
#397 0 comments 0 reactions 1 assignee View on GitHub

@tianyif is already working on this.

Since May 16, 2023.

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

Description

Hallo,

I want to ask what is the proper way to stop the service when the User deletes the Notification. The actual implementation sends Stop command to the service without stop it. Is there a way to stop the service when the User deletes the notification? Former I used to use the PlayerNotificationManager which has Listener to catch event when user delete notification, then I have the chance to execute where ever the code what I want. NOW I want to use the MediaNotification.Provider and here I have only chance to send Intent.

Thanks in advance and thanks for support

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.