Mobile SDKs

Give developers and agents session evidence and app inspection tools to investigate behavior in your mobile or supported desktop app.

Bring screenshots, user actions, logs, telemetry, and app-owned state into one investigation. Ansight SDKs let developers and agents see what happened in your app and inspect its live state through opt-in tools.

The SDKs embed a local development runtime in your app. The runtime connects to the local Ansight CLI host, streams live app evidence, and can expose opt-in tool surfaces to developers and agents. The CLI is the canonical setup, connection, inspection, and automation interface.

Use this section as the platform-neutral map. Each platform overview is a short installation and initialization path; its dedicated Packages page contains the complete package reference.

For a source-aligned comparison of every implemented runtime, capture, tooling, workflow, and build-safety surface, see the SDK Feature Catalog.

Open your app repository in a coding agent and send this prompt to set up the matching SDK:

Copyable prompt:

Use https://www.ansight.ai/skills/ansight-install.md to set up Ansight in this project and verify a connected development build.

Supported SDKs

SDKRuntime targetStart here
.NET.NET, .NET MAUI, Android, iOS, and Mac Catalyst apps..NET SDK Overview
iOSNative Swift, SwiftUI, and UIKit apps.iOS SDK Overview
AndroidNative Kotlin, Jetpack Compose, and Android View apps.Android SDK Overview
React NativeReact Native apps backed by the native iOS and Android SDKs.React Native SDK Overview
ExpoExpo development builds using the React Native bridge.Expo setup
FlutterFlutter apps backed by the native iOS and Android SDKs.Flutter SDK Overview
Cordova / CapacitorCordova-family and Ionic apps using the Capacitor 8 bridge.Cordova / Capacitor SDK Overview

Core Capabilities

CapabilityWhat it provides
Enrollment and host connectionAutomatic loopback registration for host-local targets, one-use CLI QR enrollment for physical devices, remembered reconnect, and clear-text development session transport.
Host auto-probeSDK-owned remembered-host retry behavior that reconnects after the host disappears and later reappears while the runtime is active.
Session replayPeriodic JPEG screenshots, screen-view changes, touch input, lifecycle state, and app logs for replay and CLI timeline review.
Crash captureBounded native crash evidence stored app-privately and delivered after the next launch. See Crash Capture.
Trends telemetryRuntime sampling for metrics such as memory, FPS, battery where supported, and platform-specific channels.
Live client logsExplicit app-to-host log events that appear alongside screenshots, telemetry, and tool results.
Network captureSanitized HTTP request and response evidence through native interceptors, framework hooks, wrappers, or manual recording. See Network Capture.
Connectivity captureOpt-in OS connection state, transport changes, and supported quality estimates. See Connectivity Capture.
Motion captureOpt-in forwarding of shakes and accelerometer samples the app already observes. See Motion Capture.
ArtifactsApp-defined diagnostic exports that people and agents can discover and retrieve through the CLI during a session.
Remote toolsOptional read, write, and critical tool surfaces for visual trees, files, preferences, secure storage, databases, the device clipboard, reflection, custom tools, and platform-specific inspection.
Purchase diagnosticsSimulator/emulator-only observation and validation for StoreKit and Google Play integrations. See Purchase Diagnostics.
Tool guardsRuntime policy that can deny discovery and execution, restrict tools to read-only access, or allow selected write/critical workflows in trusted builds.
Native offline captureOffline Capture records on Apple/Android through every mobile SDK and transfers on reconnect; implemented after 1.8.0 and requires the matching host.
Managed offline and annotated evidence.NET Offline Capture retains evidence without a host for ZIP export and local review; team upload uses a separate cloud integration. Debug-only native annotation editors retain undelivered bundles in a retry outbox.

Availability and API names vary by platform. Use the platform-specific articles before relying on a capability in app code.

Important: Screen capture will result in an FPS drop while frames are rendered or captured, encoded, and transported. Keep periodic JPEG capture scoped to development or QA sessions, and disable it for trend-focused runs unless visual evidence is required.

Host Auto-Probe

The .NET, Android, iOS, React Native and Expo, Flutter, and Cordova/Capacitor SDKs expose the same connection loop. While active, host auto-probe first tries local loopback registration for simulators, emulators, Mac Catalyst, and desktop apps, then retries remembered registrations. The app can start before the host and reconnect when ansight host run becomes available. Probing pauses while a live session is connected and resumes after the retry delay when that session is lost. The option is enabled by default in runtime defaults and all-in-one developer presets.

FieldDefault
enabledtrue
initial delay1000 ms
probe interval while disconnected5000 ms
retry delay after a lost session10000 ms
client nameunset

Use each platform’s withoutHostAutoProbe() / WithoutHostAutoProbe() helper, or set the enabled flag to false, for flows where reconnects should only happen after an explicit app action.

Common Integration Flow

  1. Install the CLI, run ansight doctor, and start the local host with ansight host run.
  2. Choose the SDK page for your app platform and check the Feature Catalog.
  3. Install the platform packages or products.
  4. Initialize the runtime in the platform startup location called out by the setup page, such as Android Application.onCreate(), iOS AppDelegate launch, .NET MauiProgram, React Native or Expo JavaScript bootstrap, Flutter main(), or Capacitor app bootstrap.
  5. Configure security and tool guard policy before registering broad tool suites.
  6. Launch a simulator, emulator, Mac Catalyst app, or desktop app; it registers automatically over loopback. For a physical device, run ansight pairing issue --qr and open the SDK scanner once.
  7. Confirm the connection with ansight session list --connected --json, then enable the capture, telemetry, logs, artifacts, network evidence, and tools needed for the workflow.