# Send Ios Keyboard Limitations to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ios-keyboard-limitations",
    "name": "Ios Keyboard Limitations",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/usimic/ios-keyboard-limitations",
    "canonicalUrl": "https://clawhub.ai/usimic/ios-keyboard-limitations",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/ios-keyboard-limitations",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ios-keyboard-limitations",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "ios-keyboard-limitations",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T10:46:37.253Z",
      "expiresAt": "2026-05-11T10:46:37.253Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ios-keyboard-limitations",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ios-keyboard-limitations",
        "contentDisposition": "attachment; filename=\"ios-keyboard-limitations-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "ios-keyboard-limitations"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ios-keyboard-limitations"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ios-keyboard-limitations",
    "downloadUrl": "https://openagent3.xyz/downloads/ios-keyboard-limitations",
    "agentUrl": "https://openagent3.xyz/skills/ios-keyboard-limitations/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ios-keyboard-limitations/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ios-keyboard-limitations/agent.md"
  }
}
```
## Documentation

### iOS Keyboard Extension Limitations

When building iOS custom keyboards with voice/audio features, these are the hard limitations discovered through the PolyVoice project.

### 1. Microphone Access — DISALLOWED

Keyboard extensions cannot access the microphone.

AVAudioRecorder will fail with permission error
SFSpeechRecognizer is unavailable
No Siri integration from keyboard context

Why: Apple security model — keyboards run in sandbox and could keylog audio.

### 2. Open Other Apps — BLOCKED

Keyboards cannot programmatically open the main app or any other app.

UIApplication.shared.open() returns false
URL schemes don't work (myapp://)
 ExtensionContext.open() not available

Why: Prevents malicious keyboards from launching apps without user consent.

### 3. Memory Limit — ~50MB

Keyboard extensions have strict memory limits (~30-60MB).

App terminated silently if exceeded
No crash log, just disappears
Heavy audio processing = instant death

Mitigation:

Record at 16kHz mono (not 44.1kHz)
Use 32kbps bitrate max
Immediate file cleanup after processing
60-second max recording hard limit

### 4. No Persistent Storage

UserDefaults unavailable, only App Groups.

Standard UserDefaults doesn't persist
Must use UserDefaults(suiteName: "group.com.company.app")
Requires App Group capability in both targets

### 5. Network Requires "Full Access"

API calls fail without user enabling "Allow Full Access" in Settings.

User must explicitly enable: Settings → General → Keyboard → [Keyboard Name] → Allow Full Access
Most users won't do this
Cannot prompt or explain from keyboard UI effectively

### The "Open App" Workaround

Goal: Let user tap a button to open main app for recording.

Attempt:

// This does NOT work
extensionContext?.open(URL(string: "myapp://record")!)

Reality: Must use UIApplication.shared.open() outside extension context, but keyboards can't call this.

### The Manual Switch Pattern

What actually works (with friction):

User taps button in keyboard → Shows alert: "Open PolyVoice to record?"
User manually switches to main app (Home button, swipe, etc.)
Main app detects active session (via App Groups / shared state)
Main app auto-records on appear
Auto-stops on silence (2 seconds)
Auto-copies to clipboard
User manually switches back to target app
Keyboard auto-pastes on reappear

User flow:

Keyboard → Tap mic → [Manual: Switch to app] → App auto-records → 
[Manual: Switch back] → Keyboard auto-pastes

Friction points:

Two manual app switches
Context switching breaks flow
Users forget to return
Clipboard may be overwritten

### Option 1: Share Extension (Better for Audio)

Use Share Sheet instead of keyboard.

Full app capabilities
Can record audio
Can process and return text

Limitation: Not a keyboard — user must open share sheet per text field.

### Option 2: Full App Mode

Don't use keyboard extension — use main app only.

User opens app
Records dictation
Copies result
Switches to target app
Pastes manually

Benefit: No memory limits, full mic access, reliable.
Cost: More friction than keyboard.

### Option 3: Siri Shortcuts Integration

Provide Siri Shortcuts for voice-to-text.

"Hey Siri, dictate with PolyVoice"
Returns text to current app
Fully supported by Apple

Limitation: Not instant, requires Siri setup.

### 📊 Decision Matrix

ApproachMic AccessMemoryUser FrictionApple ApprovedKeyboard extension❌ No⚠️ 50MBLow (if no audio)✅ YesKeyboard + audio workaround❌ No⚠️ 50MB🔴 High✅ YesShare extension✅ Yes✅ Full🟡 Medium✅ YesFull app only✅ Yes✅ Full🟡 Medium✅ YesSiri Shortcuts✅ Yes✅ Full🟡 Medium✅ Yes

### 🎯 Recommendation

For voice dictation/AI transcription:

Don't build a keyboard extension — the limitations make it frustrating
Use Share Extension — Apple-supported, full capabilities
Or full app — simplest to build, most reliable
Add Shortcuts — for power users who want speed

For non-audio keyboards (emoji, translation, etc.):

Keyboard extension works great. Just avoid audio features.

### 📚 References

Apple's official docs: https://developer.apple.com/documentation/uikit/keyboards_and_input/creating_a_custom_keyboard
Custom Keyboard Programming Guide (WWDC sessions)
PolyVoice project learnings (~/Projects/polyvoice-keyboard/)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: usimic
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T10:46:37.253Z
- Expires at: 2026-05-11T10:46:37.253Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/ios-keyboard-limitations)
- [Send to Agent page](https://openagent3.xyz/skills/ios-keyboard-limitations/agent)
- [JSON manifest](https://openagent3.xyz/skills/ios-keyboard-limitations/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/ios-keyboard-limitations/agent.md)
- [Download page](https://openagent3.xyz/downloads/ios-keyboard-limitations)