Skip to content

fix(EventMonitor): Accessibility permission not detected on TestFlight - #99

Merged
owieth merged 1 commit into
mainfrom
feature/98-fixeventmonitor-accessibility-permission-not-detected-on-testflight-builds
Mar 12, 2026
Merged

owieth merged 1 commit into
mainfrom
feature/98-fixeventmonitor-accessibility-permission-not-detected-on-testflight-builds

Conversation

@owieth

@owieth owieth commented Mar 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace AXIsProcessTrustedWithOptions gate with direct CGEvent.tapCreate as the permission check — more reliable on TestFlight/App Store builds where TCC path resolution differs
  • Add polling retry (every 2s, up to 60s) so the app starts monitoring automatically after permission is granted without requiring a restart
  • Remove unused checkAccessibilityPermission() and requestAccessibilityPermission() methods

Closes #98

Test plan

  • Archive and upload to TestFlight
  • Install on a Mac where InputMetrics is not yet in Accessibility list
  • Confirm alert appears directing to System Settings
  • Grant Accessibility permission
  • Confirm "Event monitoring started after permission grant" appears in logs without restarting

🤖 Generated with Claude Code

@owieth
owieth merged commit 9f867b0 into main Mar 12, 2026
@owieth
owieth deleted the feature/98-fixeventmonitor-accessibility-permission-not-detected-on-testflight-builds branch March 12, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(EventMonitor): Accessibility permission not detected on TestFlight builds

1 participant