Skip to content

feat: shake gesture for emulators#183

Open
outring wants to merge 1 commit intomobile-next:mainfrom
outring:feature/emulator-shake-gesture
Open

feat: shake gesture for emulators#183
outring wants to merge 1 commit intomobile-next:mainfrom
outring:feature/emulator-shake-gesture

Conversation

@outring
Copy link

@outring outring commented Mar 6, 2026

Summary

  • Add io shake command to simulate shake gesture on iOS simulators and Android emulators
  • iOS: uses simctl notify_post with com.apple.UIKit.SimulatorShake
  • Android: injects accelerometer spike via adb emu sensor set acceleration
  • Real devices return an unsupported error
  • Exposed via CLI (io shake), JSON-RPC (device.io.shake), and remote device proxy

Test plan

  • Verified on iOS Simulator (iPhone 16 Pro, iOS 18.3) — triggers shake event, shake detected
  • Verified on Android Emulator (Pixel 9, API 16) — app detected shake via SensorManager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant