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(
  Ansight.createOptionsBuilder().withAnsightDefaults().build(),
);

await Ansight.enrollFromQrCode({
  clientName: "My Capacitor 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. Use connect(payload, ...) only when the application already owns a scanner and supplies the enrollment payload itself.

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 Capacitor JavaScript option surface does not expose native unattended launch provisioning. Use the QR scanner or an app-owned explicit payload flow instead.