gee1k commented on issue #114: URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/114#issuecomment-1503567791
> As a workaround I am using `window.cordova.plugins.screenorientation.setOrientation` for now. I suspect this is caused by Safari now supporting the screen orientation API (`screen.orientation`). In my tests it seems like some kind of race condition between this plugin and Safari itself setting `screen.orientation`, because _sometimes_ it does work (especially if you add log statements logging out the value of `screen.orientation`). Yes, I see from Mozilla MDN that the native API for `screen.orientation` is supported in Safari starting with version 16.4 released on 2023-03-27. [https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
