shake
Trigger a device shake gesture on an iOS simulator or Android emulator to activate shake-bound features like undo typing, developer menus, or in-app shake handlers. Specify a count for detectors that need sustained motion.
Instructions
Shake the device (iOS simulator or Android emulator).
Use to trigger anything bound to the shake gesture: iOS's "Undo Typing" / "Redo Typing" prompt in a text field, React Native's developer menu in a debug build, or an app's own shake-to-report handler.
iOS delivers one discrete shake per gesture (the same motion event a physical device raises). Android has no OS-level shake event — the accelerometer is driven through a burst of hard direction changes so app-side detectors fire, and the resting orientation is restored afterwards.
Set count above 1 when a detector needs sustained motion before it triggers.
Returns { shaken: true, count }.
Works on local and remote (sim-remote) iOS simulators.
Only phone/tablet simulators and emulators are supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Target device id from `list-devices` (iOS simulator UDID or Android emulator serial). | |
| count | No | How many shake gestures to deliver back-to-back (default 1, max 10). Raise it for apps whose shake detector needs sustained motion before it fires. |