You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
iOS devices: physical lock-screen, and deep presses in landscape and on full-screen iPads #5141
Two device gaps remain in the runner. lock-screen lock/unlock is refused on physical iPhones and iPads, although Android physical phones support it since #5057. Deep press @ref is refused on iPads and on landscape iPhones (a residual from #5093): the ref shows in the snapshot, but the press is refused.
Physical-device lock-screen. The runner code compiles only for the simulator (RunnerTests+LockScreen.swift:47-70,169-272, #if os(iOS) && targetEnvironment(simulator)). It uses XCUIDevice lock-button input, reads state from public notify_get_state on com.apple.springboard.lockstate and hasBlankedScreen, and unlocks with an XCTest swipe on SpringBoard. None of that is simulator-only. Lift the #if, keep the passcode refusal (lockScreenSecure, :161-167,232-237), reword the simulator-specific messages, and admit kind === 'device' in appleLockScreenFact (packages/platform-apple/src/navigation/runtime.ts:211-228).
Deep presses in landscape and on full-screen iPads.
Landscape: RunnerFullScreenProofFrame refuses when the screen is landscape, because no read says which way to rotate (RunnerXCTestEventBridge.m:392-399). Read the rotation from XCTest (for example XCUIDevice.shared.orientation or the app root frame) and apply it.
iPad: off the phone idiom, synthesis needs AXRuntime's fills-screen proof (RunnerXCTestEventBridge.m:551-559), and on a device AXRuntime reports no app. Find a proof that does not need AXRuntime, such as the private-AX root window frame equal to the screen bounds, for full-screen apps. Stage Manager and Split View stay refused.
A press that cannot be proven safe stays refused. No mis-press is acceptable.
Completion conditions
Unit tests for the admitted lock-screen device cell and the new proof-frame cases.
The PR attaches live runs:
physical iPhone without a passcode: lock-screen lock, then unlock, with state round-tripping; with a passcode, unlock returns lockScreenSecure;
full-screen iPad and landscape iPhone with a deep (about 90 nested views) fixture: snapshot, then press @eN. Base refuses; the branch taps, with a label change and no mis-press.
The issue asks for new runner capabilities: enabling physical iOS device lock-screen and allowing deep presses in landscape/full-screen iPad contexts, with specific code locations and completion tests. It is a detailed enhancement request, not a report of broken existing behavior.
Decision: lock-screen and deep presses: Split these into separate changes. Reuse the existing SpringBoard transition for physical lock/unlock and admit each device class after a live run. For deep presses, start with landscape iPhone and reuse the prepared tap context. Read the app orientation once and keep the final target and display checks. Fullscreen iPad waits for independent evidence of app-window placement. A sole display or matching root dimensions is insufficient, as #4399 demonstrated.
Activity
apex-sentinel-staging commentedon Nov 27, 2026
Apex Sentinel · Issue review
Suggested label:
featureThe issue asks for new runner capabilities: enabling physical iOS device lock-screen and allowing deep presses in landscape/full-screen iPad contexts, with specific code locations and completion tests. It is a detailed enhancement request, not a report of broken existing behavior.
thymikee commentedon Nov 29, 2026
Decision: lock-screen and deep presses: Split these into separate changes. Reuse the existing SpringBoard transition for physical lock/unlock and admit each device class after a live run. For deep presses, start with landscape iPhone and reuse the prepared tap context. Read the app orientation once and keep the final target and display checks. Fullscreen iPad waits for independent evidence of app-window placement. A sole display or matching root dimensions is insufficient, as #4399 demonstrated.