hex/ios/HEXMobile
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel efbc618b2c
iOS: Full Access confirms on its own, and shows Off after a revoke (#2154)
* iOS keyboard: report Full Access, on or off, on every load and appearance

A tester on build 56 (iPhone 13 Pro, iOS 27.2.1) gave the Hex keyboard Full
Access "multiple times" and setup still said Not confirmed yet. Only a keyboard
can read Full Access, and the app learned it from keyboard.fullAccessSeenAt,
which the keyboard wrote from syncFromBridge after updating its traits,
settings and typing log, and only with Full Access (or, in the simulator, a
live Hex session). Nothing was ever written without it, so an "on" never went
away after Full Access was turned off, and the app could not tell off from
not checked.

What changed
- KeyboardFullAccessReport (on or off, when, and when the keyboard process
  started) in the App Group: keyboard.fullAccessOn and keyboard.fullAccessOff.
  An on also sets keyboard.fullAccessSeenAt, which earlier builds and
  Adaptive touch read; a seenAt from an earlier keyboard reads as an on from
  the oldest process.
- The keyboard reports first thing in viewDidLoad and viewWillAppear, before
  any view work or field read (no documentIdentifier), then every 5 s while
  shown from the poll. It uses hasFullAccess itself: the simulator's live
  session stand-in no longer marks Full Access on.
- Each report posts the Darwin notification
  anomaly.hex.mobile.keyboard.fullAccess; the app can forward it to
  NotificationCenter (KeyboardBridge.forwardFullAccessReports).
- KeyboardFullAccess.resolve: an off counts over an on only when newer and
  from the same or a later keyboard process (a process started before a
  grant can still say off), and is shown as off only if written since Hex
  last came to the foreground (Full Access changes only in Settings, so an
  older off may predate a grant). Otherwise on, else unconfirmed.

Verified: KeyboardBridgeTests cover the reports' storage, the legacy key and
the resolution cases; on anomastudio (iPhone 13 Pro simulator, iOS 27.2,
Release, ad-hoc signed with the App Group) the keyboard wrote an off from
Hex's own field and from Contacts without Full Access and an on with it.

* iOS setup: read the keyboard's Full Access reports and say what to do

The tester's sheet said Full Access "Not confirmed yet" with nothing tying it
to the field below, so the fix looked like Settings again. In the simulator
the grant kills Hex and its keyboard: back in Hex the sheet stays unconfirmed
until the Hex keyboard runs once, and the only hint was a faint placeholder in
an unfocused field. After Full Access was turned off the sheet kept saying On.

What changed
- KeyboardSetupMonitor.fullAccess (on, off, unconfirmed) from the keyboard's
  reports (KeyboardFullAccess.resolve), with when Hex last came to the
  foreground (willEnterForeground, or launch). fullAccessOn stays for
  onboarding and the step count. It refreshes on the keyboard's Darwin
  notification as well as the 1 s poll, so the row flips while the sheet is
  open.
- Full Access row: "Not confirmed yet" with "Switch to Hex below to confirm."
  under it; "Off" with "Turn on Allow Full Access in Settings." once a keyboard
  said so since Hex came back.
- While unconfirmed the field takes focus as the sheet opens or Hex comes
  back, so the keyboard comes up: Hex, if it was last, confirms at once;
  another keyboard shows "Switch to Hex with (globe)" (was "Tap here, then...",
  kept while unfocused), in the muted ink instead of the faint one, with a
  border while focused.
- zh-Hans strings for the three new lines; README's Setup paragraph.

Verified on anomastudio (iPhone 13 Pro simulator, iOS 27.2, Release, ad-hoc
signed with the App Group), before (e0e8b225) and after:
- Grant, back to Hex without typing: before Not confirmed yet until the user
  found the field; after unconfirmed, the field focuses, the Hex keyboard
  confirms and the row shows On within about 3 s.
- Hex used in Contacts, then back: On before and after.
- Sheet field: On before and after (about 1 s).
- Keyboard opened without Full Access: before Not confirmed yet; after Off.
- Revoke: before Hex is ready, also after the keyboard ran without it; after
  Off once a keyboard says so, unconfirmed if that was before Hex came back.
  Three revoke and grant cycles in a row: Off then On each time.
- Reinstall over an install: On kept; delete and reinstall: unconfirmed until
  the keyboard runs.
- xcodebuild test: 468 tests, 0 failures, 1 skipped (testSetupMonitorFollows
  TheKeyboardsReports included, through a real Darwin notification).
Not verified on a physical iPhone.
2026-11-21 07:25:50 +00:00
..
Assets.xcassets iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
zh-Hans.lproj iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00
AcknowledgementsView.swift iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +00:00
AppleSpeechTranscriber.swift iOS: never ask for Speech Recognition, and slides from 123 show the key preview (#2109) 2026-11-20 23:04:26 +00:00
AppShortcuts.xcstrings iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00
AudioBackend.swift iOS: Hex's own recording mixes with other audio, and keyboard dictation asks paused audio to resume (#2151) 2026-11-21 06:58:47 +00:00
ContentView.swift iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
CustomVocabularyEditor.swift iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +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: text replacements without autocorrect, End with a period, and emoji and symbols on the Dictation bar (#2147) 2026-11-21 06:24:16 +00:00
EmojiSemanticIndex.swift iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
FullKeyboardSnapshotStage.swift iOS: Polish keyboard, diacritic autocorrect, and a bilingual partner fix (#2143) 2026-11-21 04:43:47 +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: Hinglish dictation, Hindi in Latin letters (Experiment, off by default) (#2119) 2026-11-21 00:29:24 +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: fewer paste prompts, and a translate switch in the keyboard (#2134) 2026-11-21 03:24:58 +00:00
KeyboardSetup.swift iOS: Full Access confirms on its own, and shows Off after a revoke (#2154) 2026-11-21 07:25:50 +00:00
KeyboardSpeechPreparation.swift iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
LanguageSettingsRows.swift iOS: Hinglish dictation, Hindi in Latin letters (Experiment, off by default) (#2119) 2026-11-21 00:29:24 +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
Localizable.xcstrings iOS: Full Access confirms on its own, and shows Off after a revoke (#2154) 2026-11-21 07:25:50 +00:00
Onboarding.swift iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
OnboardingPieces.swift iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
OnboardingProgress.swift iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
ParakeetTranscriber.swift iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00
SettingsComponents.swift iOS: Adaptive touch, personal key centres learned on device (Experiment, off by default) (#2146) 2026-11-21 06:13:04 +00:00
SettingsPages.swift iOS: text replacements without autocorrect, End with a period, and emoji and symbols on the Dictation bar (#2147) 2026-11-21 06:24:16 +00:00
TranscriptCleanup.swift iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00
TranslateDictationRow.swift iOS: fewer paste prompts, and a translate switch in the keyboard (#2134) 2026-11-21 03:24:58 +00:00
TypingInsightsView.swift iOS: Adaptive touch, personal key centres learned on device (Experiment, off by default) (#2146) 2026-11-21 06:13:04 +00:00
TypingLogsView.swift iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00