Skip to content

After the ~2 minute timeout for background services, the notification is removed #672

Open
@svenoaks

Description

@svenoaks

General way to replicate with demo-session:

  1. Play some music.
  2. Navigate to home screen.
  3. Pause music through the notification.
  4. 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?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions