Skip to content

iOS: keep the screen on while phrasedeck is in front - #160

Merged
Skeyelab merged 1 commit into
mainfrom
idle-timer-159
Oct 27, 2026
Merged

Skeyelab merged 1 commit into
mainfrom
idle-timer-159

Conversation

@Skeyelab

@Skeyelab Skeyelab commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Part of #159. The real-phone check stays open on #159 until Eric's TestFlight build.

The app sets UIApplication.shared.isIdleTimerDisabled from scenePhase: true while the app is active, false when it's inactive or in the background. It runs with initial: true, so it also applies at launch. There's no setting for it.

The mapping is a small pure function, KeepAwake.idleTimerDisabled(for:), so it has a unit test.

Tests (/tdd)

  • Red: KeepAwakeTests failed to build with cannot find 'KeepAwake' in scope.
  • Green: xcodebuild test -only-testing:PhrasedeckTests passed, 225 tests in 27 suites.

Not checked: that the screen actually stays on with a real phone. Eric checks that with the next TestFlight build.

Closes #159.

Assisted-by: Claude Code:claude-opus-5-5
@Skeyelab
Skeyelab enabled auto-merge (squash) October 27, 2026 14:20
@Skeyelab
Skeyelab disabled auto-merge October 27, 2026 14:23
@Skeyelab
Skeyelab enabled auto-merge (squash) October 27, 2026 14:23
@Skeyelab

Copy link
Copy Markdown
Member Author

agent3 reviewed: pass. Following its note, this is now "Part of #159", with a squash body that won't close the issue, so the real-phone check stays open.

@Skeyelab
Skeyelab disabled auto-merge October 27, 2026 14:52
@Skeyelab
Skeyelab merged commit f84b836 into main Oct 27, 2026
6 of 7 checks passed
@Skeyelab
Skeyelab deleted the idle-timer-159 branch October 27, 2026 14:52
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.

1 participant