[Android] Set the orientation, but app refused to rotate

Hey,

I have tried everything I found on the web:

  1. use the driver as AndroidDriver
  2. cast the driver to Rotatable
  3. convert the driver to AugmentedDriver (also cast as Rotatable)

All behave the same way. If i rotate while the screen loads (no waits) it works perfectly. If I wait for the screen to fully load, the rotate command returns the error, and the screen ONLY rotates when appium shuts down or I minimize the app.

I have tried on multiple devices and it is the same behavior.