Skip to main content

Overview

Shake Device simulates a physical shake of the device by injecting a rapid accelerometer burst. Use it for steps that ask to “shake the device” or to trigger features bound to a shake gesture — for example a shake-to-report-a-bug flow or a React Native developer menu.
Android only.

How to use

Write a step in plain language:
  • Shake the device
  • Shake the phone to open the bug report screen

Intensity and duration (optional)

By default the shake uses a sensible amplitude for about one second. You can optionally specify a stronger or longer shake as intensity[,duration_ms]:
  • 25 — default amplitude, ~1 second
  • 40,2000 — stronger amplitude, 2-second shake
Leave it out to use the defaults.
Shake does not change device orientation, and there is no landscape/portrait rotation step. The only related gesture is flip (face-up ↔ face-down), used for flip-to-mute / flip-to-silence behaviors — not screen rotation.

Example use cases

  • Shake-to-report-a-bug / feedback flows
  • Triggering a developer or debug menu bound to the shake gesture
  • Undo-via-shake behaviors

Platform support

Android emulators only.