I use the screen orientation plugin to change the screen orientation in my app from portrait to landscape mode.
When the screen has changed to landscape, I want to trigger an event.
I tried to use the this.screenOrientation.onChange() method but this method triggers the event when the screenOrientation.lock method runs, before the actual screen on the device has changed.
However it works fine when I add a Timeout to give my device the time it needs to change it screen before the event is fired.
I wonder if there is a way to solve this without adding the timeout?