From 101e8fbf1b277da74a3510435e28fd4bcaa6edae Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Tue, 27 Oct 2026 11:47:35 +0100 Subject: fix(android): keep the screen on while a video plays The WebView has no Screen Wake Lock API, so the player's request did nothing. The bridge now supplies navigator.wakeLock over a native screen:keep-on channel (the WebView's keepScreenOn). Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-hub/tests/test_android_shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/meshbay-hub') diff --git a/packages/meshbay-hub/tests/test_android_shell.py b/packages/meshbay-hub/tests/test_android_shell.py index eedc1988..95b9d796 100644 --- a/packages/meshbay-hub/tests/test_android_shell.py +++ b/packages/meshbay-hub/tests/test_android_shell.py @@ -153,10 +153,10 @@ def test_the_shim_offers_desktop_channels_and_native_answers_each(): # A phone has a push distributor to talk to and a camera roll and an # address book to back up, and a desktop has none of them; those families are the ones the desktop lacks # rather than the ones it shares. Nor does a desktop ask before reaching the - # local network (Android 17). + # local network (Android 17), nor stand in for a Wake Lock API it has. phone_only = {c for c in shim if c.startswith(("push:", "photosync:", "phonesync:", "contactsync:", "calendarsync:", "drivesync:", - "wasync:", "lan:"))} + "wasync:", "lan:", "screen:"))} assert any(c.startswith("push:") for c in phone_only), "the push channels are gone" assert any(c.startswith("photosync:") for c in phone_only), "the backup channels are gone" assert shim - phone_only <= preload, f"channels the desktop does not have: {shim - preload}" -- cgit v1.2.3