You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "gee1k (via GitHub)" <gi...@apache.org> on 2023/04/11 15:08:58 UTC

[GitHub] [cordova-plugin-screen-orientation] gee1k commented on issue #114: Orientation is an empty object on iOS16

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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org