Skip to content
Mobile
Skill

/debugging

Common issues, Developer Mode, version compatibility, state machine diagnosis

From plugin
meta-wearables-dat-ios
58917 skills

Claude Code

$ npx -y skills add meta/meta-wearables-dat-ios --skill debugging --agent claude-code

SKILL.md

debugging.SKILL.md
name: debugging
description: Common issues, Developer Mode, version compatibility, state machine diagnosis

Debugging (iOS)

Diagnose common setup, registration, and streaming issues in DAT SDK integrations.

If local DAT Inspector MCP tools are available, use the `live-debugging-mcp` skill before changing app code. Prefer `get_dat_readiness`, `get_companion_boundary_diagnosis`, and `get_device_path` to separate app bugs from Meta AI app/device boundary issues using read-only DAT evidence.

Quick diagnosis

Device not connecting?
│
├── Is Developer Mode enabled? → Enable in Meta AI app settings
│
├── Is device registered? → Check registration state
│
├── Is device in range? → Bluetooth on, glasses powered on
│
├── Is the app registered? → Check registrationStateStream()
│
└── Stream stuck in waitingForDevice? → Check device availability

Developer Mode

Developer Mode must be enabled for 3P apps to access device features.

Enabling Developer Mode

1. Open Meta AI app on phone 2. Go to Settings → (Your connected glasses) 3. Find "Developer Mode" toggle 4. Toggle ON 5. Device may restart

Symptoms of Developer Mode disabled

  • Registration completes but device never connects
  • Stream stuck in `waitingForDevice`
  • Permission requests fail or never appear

Watch for

  • Developer Mode toggles **off** after firmware updates — re-enable it
  • Developer Mode is per-device — enable for each glasses pair
  • Some features need additional permissions beyond Developer Mode

Stream state issues

Expected flow

stopped → waitingForDevice → starting → streaming → stopped

Stuck in waitingForDevice

  • Device not in range or not connected
  • Device not reporting availability
  • DeviceSelector not matching any device

Unexpected stop

  • Device disconnected (out of range, battery died)
  • Channel closed by device
  • Error in frame processing

Version compatibility

Ensure compatible versions of SDK, Meta AI app, and glasses firmware. See [version dependencies](https://wearables.developer.meta.com/docs/version-dependencies) for the current compatibility matrix.

Known issues

| Issue | Workaround | |-------|-----------| | No internet → registration fails | Internet required for registration | | Streams started with glasses doffed pause when donned | Unpause by tapping the side of the glasses | | A single touchpad tap pauses an active stream | Tap again to resume; keep the last frame on screen while `StreamState` is `.paused` |

See the public [known issues](https://wearables.developer.meta.com/docs/knownissues) page for the current list.

Adding debug logging

import os

private let logger = Logger(subsystem: "com.yourapp", category: "Wearables")

// In your streaming code:
logger.debug("Stream state changed to: \(state)")
logger.error("Stream error: \(error)")

Live MCP evidence

When the developer has a local DAT debug server connected to the agent:

  • Start with `get_sdk_state` and `get_dat_readiness`
  • Use `get_companion_boundary_diagnosis` for permission, app identity, device

capability, device-selection, deeplink-return, and DAM/DWA-visible blockers

  • Use `get_device_path` to trace app -> DAT registration -> Meta AI app permissions ->

device selection/link -> session -> stream

  • Ask the developer to reproduce the issue, then use `wait_for_events` with the

narrowest category or source that matches the flow

  • Use `export_diagnostic_bundle` for redacted support handoff

Do not treat this as companion app introspection. It is diagnosis from app-visible DAT debug events.

Checklist

  • [ ] Developer Mode enabled in Meta AI app
  • [ ] Meta AI app updated to compatible version
  • [ ] Glasses firmware updated to compatible version
  • [ ] Internet connection available for registration
  • [ ] Bluetooth enabled on phone
  • [ ] Correct URL scheme configured in Info.plist, and `MWDAT` > `AppLinkURLScheme` matches it
  • [ ] URL callback handler forwards `metaWearablesAction` links to `Wearables.shared.handleUrl(_:)`
  • [ ] `bluetooth-central` in `UIBackgroundModes` and a non-empty `NSBluetoothAlwaysUsageDescription`
  • [ ] For camera streaming: a non-empty `NSLocalNetworkUsageDescription`, `_bonjour._tcp` in `NSBonjourServices`, and the Hotspot Configuration capability (`com.apple.developer.networking.HotspotConfiguration` in the app's entitlements)

Links

  • [Known issues](https://wearables.developer.meta.com/docs/knownissues)
  • [Version dependencies](https://wearables.developer.meta.com/docs/version-dependencies)
  • [Troubleshooting discussions](https://github.com/meta/meta-wearables-dat-ios/discussions)
Read more
@facebook
Ships withmeta-wearables-dat-ios

The Meta Wearables Device Access Toolkit enables developers to utilize Meta's AI glasses to build hands-free wearable experiences into their mobile applications.

Stars on GitHub

Momentum

stars in total
589
Star history of facebook/meta-wearables-dat-ios on GitHub, a chart by star-history.com

Other skills on meta-wearables-dat-ios.

More skills from other plugins.

deep-code-review

deep-code-review

In-depth design-focused code review - understands codebase context before evaluating PR changes, posts structured feedback to…

expo10d53k
@expo@expoInstall Skill
modlens

modlens

Plug-in vision for text-only models. Hard rule: when a file path or URL with an image extension (.png, .jpg, .jpeg, .webp, .gif,…

modlens4w4.6k
@liustack@liustackInstall Skill
appllama-app-design-skill

appllama-app-design-sk…

Build native-feeling, benchmark-quality mobile app screens (Expo / React Native). Use when designing or implementing any mobile…

appllama2mo3.9k
@appllama@appllamaInstall Skill

Questions about debugging.

Which coding agents can use debugging?
debugging installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.