aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-android/app/src/main/assets
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-17 13:29:25 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-17 13:29:25 +0200
commit165847da1ca3c3be627b5968bc77e9a11b3385cb (patch)
tree603329a801d1304fdba833c1a8f4cd8c4ce4e7c6 /packages/meshbay-android/app/src/main/assets
parenta1d18a2957d167444c6fc6c2e4ec8628509a7009 (diff)
downloadmeshbay-165847da1ca3c3be627b5968bc77e9a11b3385cb.tar.gz
feat(android): ask for the local network when a group opens
Android 17 makes it a permission for an application targeting SDK 37. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-android/app/src/main/assets')
-rw-r--r--packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js8
1 files changed, 8 insertions, 0 deletions
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 d829df34..e8b40b2d 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
@@ -104,6 +104,14 @@
resolveStun: (urls) => call('ice:resolve-stun', urls),
+ // Android 17's permission to reach the local network, where the node
+ // usually is: its state, the question, and this application's settings.
+ localNetwork: {
+ state: () => call('lan:state'),
+ request: () => call('lan:request'),
+ openSettings: () => call('lan:settings'),
+ },
+
// The device's hub key: generated, held and used natively. The page asks
// for a signature and never sees a key — it parses hostile input.
device: {