From 48aeb39e8287faf28e8616ecd737680626d501e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Sat, 31 Oct 2026 08:37:34 +0100 Subject: [PATCH 1/2] docs(test-app): raise the iOS "Open in app" prompts on a simulator Co-Authored-By: Claude Opus 5.5 --- examples/test-app/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/examples/test-app/README.md b/examples/test-app/README.md index a7652b8295..e80c10fcc3 100644 --- a/examples/test-app/README.md +++ b/examples/test-app/README.md @@ -163,6 +163,23 @@ Advertise that service from the test accessory, build with the normal physical-d then open **Settings → Open accessory setup lab**. The picker requires physical iOS 18+ hardware; use the normal session hygiene above when validating its snapshot, wait, and selector paths. +#### "Open in app" prompts + +The app registers the URL schemes `com.callstack.agentdevicelab` and `agent-device-test-app`, so it +can raise two iOS prompts that `alert` must answer. Before you change `alert`, test with the reported +prompt itself, not with a different alert. + +- **SpringBoard "Open in “Agent Device Tester”?" alert.** Open the app in a session, then run + `xcrun simctl openurl "com.callstack.agentdevicelab://x"`. After you accept this alert once, + the simulator stops showing it for this app. Rebooting or reinstalling doesn't reset this, so test + `dismiss` first. To see the alert again, create a new simulator with `xcrun simctl create`. +- **Safari "Open this page in “Agent Device Tester”?" prompt.** Open `com.apple.mobilesafari` in a + session, fill the address field with `agent-device-test-app://x`, then tap Go on the keyboard. This + prompt can be raised any number of times. + +`snapshot --raw --json` includes the Safari prompt in the page tree. For the SpringBoard alert, it +returns only the alert, without the windows around it. + ### Android emulator or device Install dependencies and run the development build on the target Android From bf79cd5fa251e69166bc2950bf0d2ebec04ee9f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Sat, 31 Oct 2026 12:04:22 +0100 Subject: [PATCH 2/2] docs(test-app): give the full simulator create command and the declared scheme Co-Authored-By: Claude Opus 5.5 --- examples/test-app/README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/examples/test-app/README.md b/examples/test-app/README.md index e80c10fcc3..0a56aab45e 100644 --- a/examples/test-app/README.md +++ b/examples/test-app/README.md @@ -165,14 +165,17 @@ the normal session hygiene above when validating its snapshot, wait, and selecto #### "Open in app" prompts -The app registers the URL schemes `com.callstack.agentdevicelab` and `agent-device-test-app`, so it -can raise two iOS prompts that `alert` must answer. Before you change `alert`, test with the reported -prompt itself, not with a different alert. +The app declares the URL scheme `agent-device-test-app` in `app.config.js`, so it can raise two iOS +prompts that `alert` must answer. Before you change `alert`, test with the reported prompt itself, +not with a different alert. - **SpringBoard "Open in “Agent Device Tester”?" alert.** Open the app in a session, then run - `xcrun simctl openurl "com.callstack.agentdevicelab://x"`. After you accept this alert once, - the simulator stops showing it for this app. Rebooting or reinstalling doesn't reset this, so test - `dismiss` first. To see the alert again, create a new simulator with `xcrun simctl create`. + `xcrun simctl openurl "agent-device-test-app://x"`. After you accept this alert once, the + simulator stops showing it for this app. Rebooting or reinstalling doesn't reset this, so test + `dismiss` first. To see the alert again, use a new simulator: + `xcrun simctl create tester-fresh ` prints its UDID. For example, + `xcrun simctl create tester-fresh com.apple.CoreSimulator.SimDeviceType.iPhone-17-Pro com.apple.CoreSimulator.SimRuntime.iOS-27-1`. + `xcrun simctl list devicetypes` and `xcrun simctl list runtimes` list the ids. - **Safari "Open this page in “Agent Device Tester”?" prompt.** Open `com.apple.mobilesafari` in a session, fill the address field with `agent-device-test-app://x`, then tap Go on the keyboard. This prompt can be raised any number of times.