Web and mobile
Run and verify Android
Prepare the optional Expo client, connect an Android emulator to the API, build a native app and record meaningful device verification.
Scope and recorded verification
The optional mobile client is experimental. The repository records an earlier Android APK run on an x86_64 emulator, covering two-factor sign-in, workspace switching, tickets and attachments, notifications, chat, reconnecting and sign-out. Release checks subsequently passed 13 mobile tests, started Expo and exported Android and iOS bundles. The emulator run predates that release build; physical devices and closed-app push delivery need their own evidence.
Generate a project with g new AcmeDesk --mobile, or use the existing clients/mobile directory. See Quick start for the backend that the client will call.
Prepare the client and native tools
Install an Android SDK, JDK and emulator, or connect a development device. Put the Android platform tools on your path and confirm the intended target appears in adb devices. The repository's TypeScript-based Node tests require Node 22.18 or later, with Node 24/26 also documented.
From your project root:
cd clients/mobile
npm ci
export MOBILE_APP_NAME="AcmeDesk"
export MOBILE_ANDROID_ID="com.example.acmedesk"
export EXPO_PUBLIC_API_URL="https://api.example.com"
Replace these sample values before building. The application identifier must satisfy the lowercase, dot-separated format enforced by app.config.ts. Public Expo variables are embedded client configuration; put no credentials or signing keys in them.
Connect the API and file storage
EXPO_PUBLIC_API_URL is an origin, without /api/v1, a query or a fragment. The session validator permits HTTPS, and allows a small set of HTTP development hosts. For an API bound to local port 15099, the documented Android setup is:
adb reverse tcp:15099 tcp:15099
export EXPO_PUBLIC_API_URL="http://127.0.0.1:15099"
Use your actual API port. Reverse the local S3 presigned-transfer port as well when applicable: a successful login proves API reachability, but attachments use separate upload and download URLs. A physical device needs a reachable address and a trusted HTTPS setup unless using an applicable local development connection.
On sign-in, enter the tenant identifier for the workspace. The server validates membership and TOTP. This workspace selection is distinct from selecting a department inside its organizational structure.
Build and run the native application
Run npm run android; the package maps it to expo run:android. npm start starts Expo's development server and is useful for subsequent JavaScript development. Changes to native plugins or credentials require a rebuilt native client.
app.config.ts uses assets/app-icon-dark-1024.png as the main icon, an Android adaptive foreground asset, and assets/brand.png for the splash image. Review these files and the application ID before distribution. Authorized tenant colors and logos apply after sign-in. Release distribution also requires your own Android signing setup.
Enable optional push delivery
The in-app inbox remains authoritative. For Expo delivery, set server configuration MobilePush:Provider to Expo, provide EXPO_PUBLIC_PUSH_PROJECT_ID, and point MOBILE_GOOGLE_SERVICES_FILE at deployment-owned Android credentials outside the repository. The notifications plugin is conditional on the project ID.
Rebuild, opt in through Account and test foreground, background and closed-app delivery separately. SignalR and inbox synchronization operate independently of push. Offline sign-out clears local credentials immediately; server revocation still needs connectivity or session expiry. See Notifications.
Validate and diagnose by stage
| Check | What it establishes |
|---|---|
npm test |
Automated session-boundary behavior |
npm run typecheck, npm run lint |
Type and static-code checks |
npx expo export --platform android --output-dir dist-android |
Bundle and asset export |
npm run android plus interaction |
Native build, installation and observed behavior on the chosen target |
For repeatable UI checks, configure ANDROID_SERIAL, MOBILE_TEST_PACKAGE and synthetic fixture credentials, then use python tests/android-smoke.py from a signed-out English app as described in the README. Its live API companion writes test data and requires a disposable seeded database and private S3 bucket.
Record the build revision, device, API environment and observed results. If sign-in works but files fail, inspect storage reachability and URL validity. If a build fails before launch, inspect SDK/JDK and native logs. On Windows, the README recommends short project and GRADLE_USER_HOME paths when the NDK is involved.