hex/ios/HEXMobile
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 2e7fc060ed
iOS: let the keyboard dictate once Hex has the mic, even if it opened before the grant (#2071)
TestFlight (build 32, iOS 27.2.1): onboarding's practice field said the
microphone wasn't allowed after it had been, until Skip for now.

Cause (reproduced on an iOS 27.2 simulator): a keyboard process keeps the
microphone permission it read when it started. AVAudioApplication,
AVAudioSession and AVCaptureDevice all still read "undetermined" in it after
Hex is allowed the mic, so a Hex keyboard opened before the grant (tried in
another app first, then onboarding) hits KeyboardLocalDictation's guard and
shows "Allow the microphone in Hex first" on the Try the keyboard page. The
app and the try page had the right state; only the keyboard's own reading
was stale.

What changed
- KeyboardBridge.appMicrophoneAllowed (App Group key app.microphoneAllowed):
  the app's own reading, written by KeyboardSetupMonitor.refresh (every
  second on onboarding and home, on becoming active, and after the mic
  prompt), only when it changes.
- KeyboardLocalDictation.start accepts the mic when its own reading or the
  app's says granted; WebKit's capture still checks, and a NotAllowedError
  still shows the same message. The probe log notes app=granted|no.
- Nothing removed. Onboarding is unchanged: #2058's no Allow button before
  the prompt, and Continue after a decline, stay as they are.

#2058 made this easier to hit, not the cause: build 32 needed the mic for
Continue, so it took a keyboard opened earlier; now declining leads to the
try page with the keyboard open, and allowing it later in Settings left that
keyboard stale too.

Verified (anomastudio, iPhone 18 Pro Max simulator, iOS 27.2, fresh install,
mic reset, Full Access via TCC): Hex keyboard tried in Spotlight first, then
onboarding with the mic allowed at the system prompt. Before: same keyboard
pid, mic=undetermined, "Allow the microphone in Hex first" on the try page.
After: same pid, mic=undetermined app=granted, web capture started in the
practice field. xcodebuild test: 267 tests, 0 failures, 1 skipped.
Not verified: a physical iPhone (the simulator's WebKit captures without a
TCC check and has no speech assets), or a keyboard that started with the mic
denied and was allowed in Settings.
2026-11-20 16:59:42 +00:00
..
Assets.xcassets feat: add iOS dictation keyboard 2026-07-19 15:21:45 -04:00
AcknowledgementsView.swift iOS: spatial autocorrect experiment with Google Books models, plus accent and two-letter fixes (#2059) 2026-11-20 16:18:07 +00:00
AppleSpeechTranscriber.swift iOS: speech model fallbacks for iPhone 11 and unavailable languages; no raw errors in the keyboard (#2048) 2026-11-20 15:04:43 +00:00
AudioBackend.swift iOS: rebuild the audio engine before the warm-mic tap so a route change can't crash it (#2064) 2026-11-20 16:25:47 +00:00
ContentView.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
CustomVocabularyEditor.swift iOS: settings as a short home screen with Dictation, Keyboard, Privacy and Experiments pages (#2054) 2026-11-20 16:04:10 +00:00
DictationController+LaunchFixtures.swift iOS: split DictationController so dev passes the size check (#2066) 2026-11-20 11:42:45 -05:00
DictationController.swift iOS: split DictationController so dev passes the size check (#2066) 2026-11-20 11:42:45 -05:00
EmojiSemanticIndex.swift iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
FullKeyboardSnapshotStage.swift iOS: Italian, French and Portuguese layouts that autocorrect in their own language; spoken @ and email addresses (#2069) 2026-11-20 16:43:10 +00:00
HexIntents.swift feat(ios): polish iPhone keyboard dictation, warm sessions, and Live Activity (#574) 2026-10-30 23:35:45 -07:00
HexLinks.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
HEXMobile.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
HEXMobileApp.swift iOS: settings as a short home screen with Dictation, Keyboard, Privacy and Experiments pages (#2054) 2026-11-20 16:04:10 +00:00
Info.plist iOS: plain permission prompts and no pre-prompt Allow button, for App Review (#2058) 2026-11-20 16:13:36 +00:00
KeyboardPreviewHost.swift iOS: full keyboard by default, typing without Full Access, and a logging mark (#2067) 2026-11-20 16:41:37 +00:00
KeyboardSetup.swift iOS: let the keyboard dictate once Hex has the mic, even if it opened before the grant (#2071) 2026-11-20 16:59:42 +00:00
LanguageSettingsRows.swift iOS: Italian, French and Portuguese layouts that autocorrect in their own language; spoken @ and email addresses (#2069) 2026-11-20 16:43:10 +00:00
LiveActivityCoordinator.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
Onboarding.swift iOS: plain permission prompts and no pre-prompt Allow button, for App Review (#2058) 2026-11-20 16:13:36 +00:00
OnboardingProgress.swift iOS: add a three-page first-run onboarding (#2031) 2026-11-20 12:36:45 +00:00
ParakeetTranscriber.swift iOS: speech model fallbacks for iPhone 11 and unavailable languages; no raw errors in the keyboard (#2048) 2026-11-20 15:04:43 +00:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00
SettingsComponents.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
SettingsPages.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
TranscriptCleanup.swift iOS: dictate in every language Apple Speech has on device 2026-11-20 07:52:32 -05:00
TranslateDictationRow.swift iOS: settings as a short home screen with Dictation, Keyboard, Privacy and Experiments pages (#2054) 2026-11-20 16:04:10 +00:00
TypingInsightsView.swift iOS: settings as a short home screen with Dictation, Keyboard, Privacy and Experiments pages (#2054) 2026-11-20 16:04:10 +00:00
TypingLogsView.swift iOS: settings as a short home screen with Dictation, Keyboard, Privacy and Experiments pages (#2054) 2026-11-20 16:04:10 +00:00