Helps developers set up Meta AI app registration and device permission flows.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "permissions-registration" skill from askskill: 1. Download https://raw.githubusercontent.com/facebook/meta-wearables-dat-android/main/plugins/mwdat-android/skills/permissions-registration/SKILL.md 2. Save it as ~/.claude/skills/permissions-registration/SKILL.md 3. Reload skills and tell me it's ready
Please outline the complete Meta AI app registration process, including prerequisites, console settings, common errors, and troubleshooting tips, as a step-by-step checklist.
A clear app registration checklist covering prerequisites, setup steps, and troubleshooting guidance.
Help me design a device permission authorization flow covering user consent, token retrieval, permission validation, retry logic, and timeout handling, and provide a flowchart description.
A device permission flow specification with key states, exception branches, and a flowchart-style description.
Based on Meta AI app registration and device permission requirements, give me implementation guidance including API call order, security considerations, logging, and testing checkpoints.
An actionable integration plan to help developers securely implement registration and permissions.
Register your app with Meta AI, then request the device permissions it needs.
The DAT SDK separates two steps:
Both flows depend on the Meta AI app being installed on the phone.
Wearables.startRegistration(activity)
Observe registration state:
lifecycleScope.launch {
Wearables.registrationState.collect { state ->
// Update your registration UI
}
}
To unregister:
Wearables.startUnregistration(activity)
checkPermissionStatus(...) is a suspend API that returns a DatResult.
lifecycleScope.launch {
Wearables.checkPermissionStatus(Permission.CAMERA)
.onSuccess { status ->
if (status == PermissionStatus.Granted) {
startStreaming()
}
}
.onFailure { error, _ ->
showPermissionError(error.description)
}
}
Use Wearables.RequestPermissionContract() with the Activity Result API:
private val permissionLauncher =
registerForActivityResult(Wearables.RequestPermissionContract()) { result ->
result.onSuccess { status ->
if (status == PermissionStatus.Granted) {
startStreaming()
}
}.onFailure { error, _ ->
showPermissionError(error.description)
}
}
fun requestCameraPermission() {
permissionLauncher.launch(Permission.CAMERA)
}
Users can allow once or allow always through the Meta AI flow.
| Mode | Registration behavior |
|---|---|
| Developer Mode | Use APPLICATION_ID = 0 for local development |
| Production | Use the application ID assigned in the Wearables Developer Center |
For development builds, enable Developer Mode in the Meta AI app before testing registration and permissions.
AndroidManifest.xmlSet up the Android SDK and connect to Meta glasses for the first time.
Test and validate glasses features without physical hardware using MockDeviceKit.
Set up camera sessions, stream video, capture photos, and tune resolution.
Build a complete DAT app with sessions, camera streaming, and photo capture.
Manage session and stream state with pause, resume, and device monitoring.
Diagnose common issues, compatibility problems, and session or stream debugging cases.
Guide app registration with Meta AI and camera permission request flows.
Search Microsoft Entra ID and Graph permissions plus first-party app details.
Manage Feishu document and file sharing, access permissions, and collaborators.
Set up Entra ID app registration, OAuth, permissions, and MSAL integration.
Control Android devices with natural language for UI and system automation.
Set up the Meta glasses SDK and make your first connection.