After the ~2 minute timeout for background services, the notification is removed
Open
@marcbaechinger is already working on this.
Since Sep 24, 2023.
question
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
General way to replicate with demo-session:
- Play some music.
- Navigate to home screen.
- Pause music through the notification.
- After ~2 minutes, onDestroy() of the PlaybackService is called and the notification is removed.
After that, the user has no way to resume playback besides going back into the app, the notification is removed and app no longer responds to play command from bluetooth headset.
Seeing how other apps like YouTube Music persist the notification and continue to respond to media buttons, is there a general recommended way to mimic this behavior with Media3?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.