Native Media Player Notification for Mobile Apps #1338
Unanswered
alan-altruy
asked this question in
Android
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Add native media session integration for the Home Assistant Companion App, allowing media_player entities to appear as real system media controls — similar to Spotify, YouTube Music, or other media apps.
When enabled, playback from supported media_player entities (e.g. Sonos, Chromecast, DLNA, etc.) would automatically create a native Android media notification with:
This should not rely on notify.mobile_app, but instead use Android’s MediaSession API (and iOS’s equivalent if possible).
Why this matters
Currently, media control via Home Assistant is limited to:
A true system-level media session would:
Example scenario
I start playback on media_player.sonos.
A native media notification appears showing:
If I swipe away the notification, an automation could trigger media_player.media_stop.
Optional enhancements
Platform(s)
Beta Was this translation helpful? Give feedback.
All reactions