원클릭으로
debugging
Common issues, Developer Mode, version compatibility, and session and stream diagnosis
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Common issues, Developer Mode, version compatibility, and session and stream diagnosis
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Session and Stream capability setup, video frames, photo capture, resolution and frame rate configuration
Kotlin patterns, DatResult, session and capability conventions for DAT SDK Android development
Display capability setup, display-capable device selection, UI DSL, icons, buttons, images, and video playback
SDK setup, Gradle integration, AndroidManifest configuration, and first connection to Meta glasses
MockDeviceKit for testing without physical glasses hardware
App registration with Meta AI and device permission flows
| name | debugging |
| description | Common issues, Developer Mode, version compatibility, and session and stream diagnosis |
Diagnose common setup, session, and stream issues in DAT SDK integrations.
No eligible device or session won't start?
|
+-- Did you call Wearables.initialize(context)? -> Must happen before SDK usage
|
+-- Did registration complete? -> Observe Wearables.registrationState
|
+-- Is Developer Mode enabled? -> Enable it in the Meta AI app for dev builds
|
+-- Does Wearables.devices contain a linked device? -> Check Bluetooth and range
|
+-- Did createSession() or addStream() return a DatResult failure? -> Surface the typed error
Developer Mode must be enabled for local development builds that use mwdat_application_id = 0 and mwdat_client_token = 0.
Wearables.createSession(...) fails with no eligible deviceAPPLICATION_ID, CLIENT_TOKEN, and release-channel gating insteadSTARTEDWearables.registrationStateWearables.devices contains a compatible linked deviceSTREAMINGsession.start() succeeded before calling session.addStream(...)Wearables.checkPermissionStatus(...)stream.start() returned successcapturePhoto() only succeeds while the stream is actively streamingCaptureError instead of discarding the DatResultEnsure compatible versions of the SDK, Meta AI app, and glasses firmware. See version dependencies for the current compatibility matrix.
private const val TAG = "DATWearables"
stream.start()
.onFailure { error, _ -> Log.e(TAG, "Failed to start stream: ${error.description}") }
Prefer logging typed DatResult failures and observed state transitions over generic exceptions.
Wearables.initialize(context) ran before SDK usageAPPLICATION_ID and CLIENT_TOKEN match the build modeDatResult failures are surfaced in logs or UI