Skip to main content

notifications · postNotification · shade

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Read the notification shade, post a notification to it, or open it. These call app_notifications.

notifications​

notifications(): Promise<Data[]>

postNotification​

postNotification(text: string, title?: string): Promise<Data[]>

shade​

shade(open: boolean): Promise<Data[]>

Examples​

Post a notification​

await device.postNotification('Your code is 123456')

The same call from the command line, mobium notifications --post "Your code is 123456", printed on an Android 15 emulator:

android Serial console enabled — Performance is impacted. To disable, check bootloader.
com.android.shell Mobium — Your code is 123456

Pull the shade down​

await device.shade(true)

The same call from the command line, mobium notifications --shade open, printed on an Android 15 emulator:

com.android.shell Mobium — Your code is 123456
android Serial console enabled — Performance is impacted. To disable, check bootloader.

mobium notifications --shade open on an Android 15 emulator

mobium notifications --shade open on an Android 15 emulator