Check a notification
emu_check_notificationWaits for an app's notification to appear in the Android shade, then optionally taps it and verifies the app opens using a marker.
Instructions
Wait until a notification of the package whose title contains title is posted (dumpsys) and visible in the shade, optionally tap it and check the app opens (tap, opened_marker). Use it after the app scheduled a notification yourself (for example with emu_smoke notif_delay 0 and emu_clock forward). Needs this session's lease: NO_LEASE means emu_start first, BUSY means another session uses the emulator (wait or ask the person). Runs as a job: if the result is a job_id, call emu_job with it. Do not use mobile-mcp while it runs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package": "<package>",
"title": "<title>"
},
"name": "emu_check_notification"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avd | No | AVD name (default "unity-test", or the EMU_AVD environment variable of the server). | |
| tap | No | Tap the notification in the shade and check the app opens. | |
| title | Yes | Plain substring of the notification title. | |
| package | Yes | Package name of the app that posts the notification. | |
| since_ms | No | Device epoch ms; only notifications posted at or after it count (default: device time when the check starts). | |
| wait_sec | No | How long this call waits for the job (default 50, max 600). If the job is still running, the call returns a job_id for emu_job. | |
| timeout_sec | No | How long to wait for the notification (default 240). | |
| opened_marker | No | Text the app logs when opened from the notification (with tap). |