Screen orientation issue iOS after device turn

Hello, I have an ionic application which plays video streams. When the user hits a button, I want the application to change its orientation to landscape so that the player is displayed in fullscreen. Everything works as expected on android and iOS, except one thing:

After the app is in landscape mode (locked by using the lock method of screenOrientation plugin), if I rotate the phone to landscape and back to portrait while the app is in landscape, after I try to lock the app again in portrait it stays however in landscape. Even if I make a second call to lock to portrait after a timeout the app remains in landscape. This happens only on iOS. If I do not rotate the device in any way, everything works as expectded. Any ideas?

I also created a github issue with more detailed information Screen orientation not working randomly · Issue #82 · apache/cordova-plugin-screen-orientation · GitHub