From 652465910dcdcc761aa2e078ff1a82625e2a0aa5 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sun, 4 Oct 2026 22:46:00 +0200 Subject: feat(android): music keeps playing with the screen off While a track plays, the page asks the shell to stay awake (playback:keep-alive): on Android the cast's foreground service and visible WebView, with a notification; on desktop a power save blocker. Co-Authored-By: Claude Opus 5.5 --- .../meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages/meshbay-android/app/src/main/assets/bridge') diff --git a/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js b/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js index 4755531..7ace33b 100644 --- a/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js +++ b/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js @@ -162,6 +162,12 @@ chromecastPlay: () => call('cast:chromecast:play'), } } : {}), + // Music is playing: keep the process, the Wi-Fi and the page awake with + // the screen off, behind a notification, until told otherwise. + playback: { + keepAlive: (on) => call('playback:keep-alive', on === true), + }, + // Where downloads go, chosen once. A display name comes back, never a URI. folder: { choose: () => call('folder:choose'), -- cgit v1.2.3