Enrollment

Use automatic native loopback registration in a simulator or emulator and scan one generic CLI host QR on a physical device.

The native runtime registers automatically in an iOS Simulator or Android emulator. For a physical device, run ansight pairing issue --qr, then open the SDK scanner from a developer-only app surface:

await Ansight.initializeAndActivate({
  useNativeAllInOneDefaults: __DEV__,
});

const result = await Ansight.enrollFromQrCode({
  clientName: "React Native App",
});

The any-app invite does not require prior app registration. The native SDK supplies its real app ID, stores the installation registration privately, and reconnects on later launches.

scanPairingQrCode(...) remains an API alias for the scanner. Use connect(scannedPayload, ...) only when the application already owns a QR scanner and passes the current enrollment payload to Ansight.

Cellular paths are rejected by default for QR enrollment, saved profiles, and explicit connections. Use withCellularHostConnections() only for an intentional mobile-data or personal-hotspot development workflow. It can consume mobile data and does not change the clear-text transport.

The React Native option surface does not expose native unattended launch provisioning. Use the QR scanner or an app-owned explicit payload flow instead.