How to automate shaking the device

Is there a way to automate shaking the device?

I have a debug menu that I need to access during my tests.

I also want to know this. @Jon_Siswick-Clark, have you resolved this? Or does anyone know of a solution?

I’m trying this on iOS.

I don’t test mobile, and I don’t know if this will work, but what about:

Mobile.tapAtPosition(1000, 10)
Mobile.tapAtPosition(-1000, 10)
Mobile.tapAtPosition(1000, 10)
Mobile.tapAtPosition(-1000, 10)
1 Like

Unfortunately, this did not work. Thanks for the idea though!