ios_notifications_capture
Watch which notifications an iOS device receives and return them. Use this to confirm an app actually got a push or alert — for example waiting for a one-time passcode to arrive after triggering a login. Reports WHICH app was notified, WHEN, whether the notification contained a one-time code, and whether it was actually shown or silently suppressed. It CANNOT return the notification text: the device keeps the title and body private. To read the words, capture while the banner is on screen and use ios_page_source. By default it returns as soon as the first notification arrives, so trigger the action first and call this straight after (or run it while the action happens). No automation session required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | iOS device UDID | |
| seconds | No | How long to wait at most (default 30, max 45) | |
| bundleId | No | Only notifications for this app, e.g. "com.example.app" (exact match) | |
| oneTimeCode | No | Detect whether each notification contains a one-time passcode. Off by default because it makes the device report far more detail and costs noticeably more; turn it on for OTP tests. | |
| waitForFirst | No | Return as soon as the first matching notification arrives (default true). Set false to collect everything for the whole window. | |
| oneTimeCodeOnly | No | Only return notifications containing a one-time code. Implies oneTimeCode. |