I'm using the screen orientation plugin. It works well but after I lock the screen orientation the screen size remains with the previous orientation size. So I have to reload the app to get the right screen size after lock the orientation. Any idea why this behavior? I need to get the right size after the lock. Here a code sample:
console.log(window.screen.width) // 450
screen.orientation.lock('landscape').then(() => {
console.log(window.screen.width) // 450. Should be 640
});
BTW: I didn't find a issue tracker of this plugin