Skip to content

feat(android): Now Playing home-screen widget - #346

Open
laika02 wants to merge 1 commit into
ghenry22:masterfrom
laika02:android-now-playing-widget
Open

laika02 wants to merge 1 commit into
ghenry22:masterfrom
laika02:android-now-playing-widget

Conversation

@laika02

@laika02 laika02 commented Dec 2, 2026 •

Copy link
Copy Markdown

Summary

Adds an Android home-screen widget showing what's playing, with playback controls. It's a port of Auxio's widget and comes in several sizes, as asked for in #92.

Changes

  • New local module modules/expo-now-playing-widget (Android only; iOS gets a no-op).
    • Shows the cover, title and artist with play/pause, previous, next, repeat and shuffle.
    • Eight layouts chosen by the widget's size, as in Auxio. Android 12+ picks the layout itself; older versions get the largest one that fits.
    • Follows the system's dynamic colours on Android 12+, in light and dark.
    • If the app's process has been killed, the widget shows "Nothing playing", and tapping it opens the app.
  • New src/services/nowPlayingWidgetService.ts. It pushes the player state to the widget and runs the widget's button presses. It only fetches covers while a widget is placed.
  • Shuffle reorders the queue one time, since Substreamer has no shuffle mode to show.
  • Registered in playerBootstrap, package.json, the Jest coverage list and the module list in AGENTS.md.

Licensing

  • The provider, layouts and drawables are adapted from Auxio, which is GPL-3.0-or-later like Substreamer. Each adapted file keeps Auxio's copyright notice and says it was adapted.
  • The icons are Google's Material icons (Apache-2.0), as used in Auxio.

Testing

  • npx tsc --noEmit passes
  • npx jest --no-coverage passes
  • New/updated tests added (if applicable): the service and the module wrapper, both at 100% coverage
  • Tested on iOS (Android-only feature)
  • Tested on Android:
    • Real devices: a Pixel 10 and an A15.
    • Android 15 emulator: placing the widget, the docked layouts, every button, the app swiped away, and the process killed.

Also passing: validate-intl, validate-translations, madge --circular and validate:modules.

Screenshots

now-playing-widget

Related Issues

Closes #92

A port of Auxio's widget: the current track's cover, title and artist,
with play/pause, previous, next, repeat and shuffle, in eight layouts
chosen by the widget's size. Buttons are sent to JS, which drives the
player; the widget shows an empty state once the app's process is gone.

New local module expo-now-playing-widget (Android only). The provider,
layouts and drawables are adapted from Auxio (GPL-3.0-or-later, same as
Substreamer) and keep its copyright notice; the icons are Material icons
(Apache-2.0).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playback Widgets for Android (and iOS?)

1 participant