Skip to content

Latest commit

 

History

History

app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Omi App

The Omi App is a Flutter-based mobile application that serves as the companion app for Omi devices. This app enables users to interact with their Omi device, manage apps, and customize their experience.

Home processing placement

Processing rows appear on Home only on the user's current local day. Older pending recordings appear under Processing in Activity (the Home bell); tapping a row opens its conversation. Finished recordings return to their recorded day on Home and leave the pending list. Search and folder results retain their exact matches.

The server classifies home_step without choosing a timezone. The existing default-on HOME_STEP_PROJECTION switch also controls home_processing_today in GET /v1/pending-work; setting it off restores all-day Home processing placement without an app release. No processing jobs or stored conversations are changed. Contract coverage: test/unit/processing_today_test.dart and test/widgets/processing_today_render_test.dart.

Quick Setup

Before getting started, make sure your device is connected and unlocked. If you're using an iPhone, ensure that Developer Mode is enabled — you can toggle this in the iPhone settings. For Android devices, make sure the device is connected and USB debugging is enabled in Developer Options

  1. Start the local backend harness from the repo root. setup.sh builds against it but does not start it, so do this first or the app will launch with nothing to talk to:

    make dev-init   # once: creates backend/.venv and copies the env template
    make dev-up     # Firestore + Auth emulators and the Python API on :8000
    
    # No provider API keys? Use fake providers:
    PROVIDER_MODE=offline make dev-up

    make dev-init resolves a pinned Python 3.11 on its own — python3.11 on PATH, then Homebrew's [email protected], then a uv-managed install — so your default python3 doesn't need to be 3.11. The harness also needs a Java runtime and firebase-tools/npx; make dev-up names what's missing.

    make dev-status shows what came up; make dev-down stops it. Ports, seeded users, and troubleshooting: backend/docs/runbooks/local-emulator-manual-qa.md.

  2. Navigate to the app directory:

    cd app
  3. Run the setup script for your platform:

    # macOS/Linux: iOS
    bash setup.sh ios
    
    # macOS/Linux: Android
    bash setup.sh android
    # Windows PowerShell: Android
    .\setup\scripts\setup.ps1 android

    bash setup.sh ios is the safe local-development path: it uses the local API/emulator harness and the demo-omi-local Firebase project. For a real iPhone, set OMI_DEV_HOST to the Mac's LAN or Tailscale address before running both setup.sh ios and make dev-up (export it so both commands see it) — the harness now binds there too, not just the app build.

    iOS setup requires macOS/Xcode, so Windows developers should use the Android setup path.

Mobile beta / dogfood

The mobile beta is an explicit production-data profile. It uses the production Firebase project and user IDs, but routes serving traffic to https://api.omiapi.com/, matching the macOS beta serving plane:

export FIREBASE_SERVICE_ACCOUNT_KEY=/secure/path/to/firebase-service-account.json
bash setup.sh ios beta

# Android beta uses the existing prod flavor and package
bash setup.sh android beta

The Firebase service account must be able to generate the production mobile configuration, and the beta bundle ID must be registered with both Firebase and the Apple team. Override the default bundle ID with OMI_MOBILE_BETA_BUNDLE_ID when your team uses a different registered ID. The beta build uses the mobile_beta profile and the omi-beta://auth/callback scheme. Product traffic uses the beta serving API, while Google and Apple OAuth remain on https://api.omi.me/; the beta must not be treated as a local-emulator build.

  1. Ensure GitHub SSH access is set up correctly for pulling certificates from repositories. After running the command below, if you're prompted for a passphrase, enter your SSH passphrase — or simply press Enter/Return if you haven't set one.

    cd ~/.ssh; ssh-add
  2. To run the app, navigate to the app directory and use the following command:

    flutter run --flavor dev

Verifying changes

The fast path for app changes is the unified verify entrypoint (no device, no credentials — loopback fixtures and synthetic data only):

make mobile-verify ARGS="doctor"                              # lane readiness + remedy
make mobile-verify ARGS="fast --paths app/lib/pages/chat/page.dart"  # focused journeys
make mobile-verify ARGS="fast --all"                          # full hermetic suite

Selection is mechanical: journeys are discovered from integration_test/journeys/, changed paths map to the behaviors they can break, unknown app/lib changes fall back to the full suite, and an empty selection fails instead of passing. CI runs the same command in the journeys-hermetic lane when app/journey inputs change. Receipts, selection rules, simulator smoke, and the separate physical-device path: scripts/dev-harness/MOBILE_VERIFY.md.

Building and Deploying to iPhone

To build and deploy the app to an iPhone so it can run independently from your laptop:

The quick path is the setup wrapper with an AOT build mode:

OMI_MOBILE_BUILD_MODE=profile bash setup.sh ios   # or release

A plain bash setup.sh ios installs a debug (JIT) build, which iOS only lets run while flutter run is attached; opened from the Home Screen it shows a notice explaining that instead of starting.

Manual equivalent:

  1. Build the iOS app with release mode and specific flavor:

    # After the normal setup has seeded the iOS/Firebase files:
    source setup.sh
    setup_app_env local_dev "$LOCAL_API_BASE_URL"
    scripts/validate_mobile_build_config.sh --flavor dev --profile local_dev
    flutter build ios --flavor dev --release \
      --dart-define=OMI_APP_PROFILE=local_dev \
      --dart-define=OMI_API_BASE_URL="$LOCAL_API_BASE_URL" \
      --dart-define=OMI_FIREBASE_AUTH_EMULATOR_HOST="$LOCAL_DEV_HOST"

    This produces an .app bundle at:

    build/ios/iphoneos/Runner.app
    
  2. Install directly from the .app bundle (recommended for local device install):

    ios-deploy --bundle build/ios/iphoneos/Runner.app --debug

    This will install the app directly to your connected iPhone.

Once installed, the app will run on your iPhone independently from your development machine.

Need Help?

Processing placement compatibility: the backend must explicitly confirm home_processing_today: true; missing fields, failed reads, 404s and account changes keep prior Home placement. The recorded start day is authoritative, including captures crossing midnight. David relay 9e09f1: every failed conversation stays off Home and is listed with retry in Activity; switch off restores the previous failed Home row. Episode membership from episode_id is honored before the episode fetch arrives.

Failed-row surface scope (relay 9e09f1): mobile Home and Activity changed. Web /home is chat/tasks/goals and has no conversation rows; its /conversations gallery is a separate destination. macOS uses separate Swift presentation, not Flutter Home rows. Neither web nor macOS UI is changed by this addition. Pending wire types in all clients are regenerated for the optional step.