Android client
The Android app packages the Vue client with a small local gateway. Capacitor starts the embedded Node.js runtime, the gateway listens on 127.0.0.1:3040, and the WebView opens that local address. The gateway is loopback-only; it does not expose an HTTP listener to the LAN. Release APKs are debug-signed sideload packages, not Google Play builds.
Build on Windows
Use a short checkout path such as C:\src\webspeak. The Node.js plugin's CMake/Ninja object paths can exceed the Windows toolchain limit in deeply nested workspaces. A clean build in a nested validation directory failed with CMake's 250-character object-path warning and a Ninja mkdir error; the same source and dependencies built successfully from a shorter path. Changing application code or the embedded runtime is not required for this build-host issue.
Use the server development Node.js version (22.5 or newer) on the build host. Install all three dependency sets, then prepare and sync the Android project:
npm ci --ignore-scripts --no-audit --no-fund
npm run prepare:sdk
npm rebuild @discordjs/opus --foreground-scripts --no-audit --no-fund
npm --prefix web ci --no-audit --no-fund
npm --prefix mobile ci --no-audit --no-fund
npm run android:sync
Build the debug APKs with Android Studio's JDK and the checked-in Gradle wrapper:
$env:JAVA_HOME = "C:\Program Files\Android\Android Studio\jbr"
$env:ANDROID_HOME = "$env:LOCALAPPDATA\Android\Sdk"
Set-Location web\android
.\gradlew.bat assembleDebug
Gradle writes one APK per supported CPU architecture under web/android/app/build/outputs/apk/debug/: arm64-v8a, armeabi-v7a, and x86_64. Use arm64-v8a for most modern Android phones and x86_64 for the Android emulator. GitHub Releases contains all three APKs with versioned filenames.
Current scope
- Platform startup is isolated in
web/src/platform/. Ordinary browser sessions mount directly; the native shell loads the Node.js plugin only while waiting for its loopback gateway. Startup errors, timeouts and page exit release polling and message listeners. Retry repeats the readiness handshake without restarting the embedded Node.js runtime. - The local gateway serves the join page, public configuration, skin package, join-ticket endpoint, and voice WebSocket bridge.
- The admin console and server-side skin management are not available in the Android package.
- Mobile audio encoding uses the JavaScript/WASM Opus codec. The normal server build continues to use the native Opus codec.
- The embedded runtime supplied by the current Capacitor Node.js plugin is Node.js 18.20.4. The gateway, identity parsing, and Opus encode/decode paths have been smoke-checked on that runtime. The TeamSpeak SDK declares Node.js 20.19 or newer, so real TeamSpeak connectivity and two-way audio remain unverified on Android; the APKs are for sideload testing.
- Android WebView on the tested emulator does not expose
getDisplayMedia; screen sharing needs a native MediaProjection integration. A persistent Android foreground service and real-device background audio behavior also remain to be implemented and verified.
Recorded validation
On October 1, 2026, the platform startup tests passed as part of 118 application tests. Backend compilation, frontend type checking, Vite production build, asset packaging, Capacitor sync and assembleDebug passed. Gradle produced arm64-v8a, armeabi-v7a and x86_64 debug APKs.
The x86_64 APK installed and cold-started in a read-only Android 15 emulator. The embedded gateway returned webspeak-android from /health and mobile: true from /api/public-config; a screenshot confirmed that the WebView reached the join homepage. The narrow header was subsequently corrected and checked in desktop responsive viewports. The clean rebuild below includes those changes; its installation and startup were checked on October 2, while Android layout checks remain pending. The earlier emulator check covers startup and rendering only; real TeamSpeak connectivity, two-way audio and physical-device behavior remain unverified.
Later on October 1, commit 662dad36fc4d8cf9f35268a99b8221851f6fc52c was exported with git archive into a fresh short directory. All three dependency sets were installed again from their lock files, and the pinned TeamSpeak SDK was rebuilt. android:sync and assembleDebug --no-daemon passed using Windows x64, Node.js 24.12.0, Android Studio JDK 25.0.2, Gradle 9.5.0 and Android SDK 36. All 134 Gradle tasks executed. The three ABI-specific APKs contain the gateway entry, SDK bundle, Opus WASM, frontend and matching native Node.js libraries; their manifest reports version 0.2.5-preview / code 25, minimum SDK 24 and target SDK 36. Artifact hashes are recorded in docs/LOCAL_ARTIFACTS.zh-CN.md. This was a debug build check, not a signed release or a new device/media test.
On October 2, the same clean x86_64 APK was installed in a read-only Android 15 emulator after rechecking its SHA-256. Installation succeeded and the package manager confirmed version 0.2.5-preview / code 25. A cold start of io.webspeak.client/.MainActivity completed in 1,822 ms. An ADB-forwarded HTTP check reached the embedded gateway: /health returned status: ok and engine: webspeak-android, while /api/public-config reported the expected version and mobile: true. The forwarding and emulator were then closed without saving a snapshot. This check did not exercise WebView layout, touch input, real TeamSpeak connectivity or audio.