hex/ios/HEXKeyboard/Info.plist
Ryan Vogel 9cf4d8b427
iOS: plain permission prompts and no pre-prompt Allow button, for App Review (#2058)
* iOS: plain purpose strings for the microphone and speech recognition

App Review 5.1.1(ii) wants purpose strings that clearly and completely say why
Hex needs access. The old speech string named an API ("SpeechTranscriber")
instead of saying what happens, and the microphone string didn't say what
becomes of the audio. Both now say what Hex does with it and that it stays on
the iPhone:

- Microphone: "Hex turns what you say into text on this iPhone. Audio never
  leaves your iPhone and is deleted once it's transcribed."
- Speech recognition: "Hex turns your recordings into text with Apple's
  on-device speech recognition. Nothing you say is sent to a server."

Same strings in the app and the keyboard extension (project.yml and the
generated Info.plists).

Verified: xcodegen regenerates identical Info.plists; Release build for
generic/platform=iOS succeeds and HEX.app/Info.plist carries the new strings.

* iOS onboarding: no Allow button before the microphone prompt, and no dead end when it's declined

Two App Review 5.1.1(iv) rejection patterns on the Set up Hex page:

1. A custom screen that leads into a permission prompt may not use "Allow"
   (or similar) on the button that triggers it; Apple asks for "Continue" or
   "Next". The Microphone row's small Allow button is gone. The row now says
   why ("So Hex can hear you dictate"), and iOS asks when the person taps
   Continue, or the Keyboard row's Open Settings (unchanged: it asks first so
   Microphone is listed on Hex's Settings page). Denied still shows Open
   Settings.
2. Continue needed the microphone granted, so anyone who declined it could
   never get into Hex, though the keyboard types without it. Continue now
   needs only the keyboard (added or unverifiable). Declining leads on to Try
   the keyboard, and the app's setup card keeps showing the microphone until
   it's allowed.

README's first-run section updated to match.

Verified: Release build for generic/platform=iOS succeeds. Not yet rendered
in a simulator.
2026-11-20 16:13:36 +00:00

46 lines
1.6 KiB
Text

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Hex Keyboard</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>IsASCIICapable</key>
<true/>
<key>PrefersRightToLeft</key>
<false/>
<key>PrimaryLanguage</key>
<string>en-US</string>
<key>RequestsOpenAccess</key>
<true/>
</dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.keyboard-service</string>
<key>NSExtensionPrincipalClass</key>
<string>$(PRODUCT_MODULE_NAME).KeyboardViewController</string>
</dict>
<key>NSMicrophoneUsageDescription</key>
<string>Hex turns what you say into text on this iPhone. Audio never leaves your iPhone and is deleted once it's transcribed.</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>Hex turns your recordings into text with Apple's on-device speech recognition. Nothing you say is sent to a server.</string>
</dict>
</plist>