Skip to content

Implement QR scanner #81

Description

@2witstudios

Epic 5: iOS App — Models & Networking — Issue 6/6

Source: 3-agent worktree — production-grade AVCaptureSession implementation

Description

Camera-based QR code scanner for pairing with ppg server.

Acceptance Criteria

  • UIViewRepresentable wrapping AVCaptureSession
  • QR code detection via AVCaptureMetadataOutput
  • Parse ppg://connect?host=...&port=...&ca=...&token=... scheme
  • Double-scan prevention (process each QR code only once)
  • Error alerts for invalid QR codes
  • Video preview layer with proper bounds management
  • Camera permission request handling
  • Proper session lifecycle (start/stop on appear/disappear)

Files to Create

  • ios/PPGMobile/PPGMobile/Views/Settings/QRScannerView.swift (new)

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic:ios-networkingEpic 5: iOS App — Models & NetworkingmobilePPG Mobile project

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions