You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/07/15 04:21:26 UTC

[GitHub] [cordova-plugin-screen-orientation] breautek edited a comment on issue #35: screen.orientation.lock() is not available on this device.

breautek edited a comment on issue #35:
URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/35#issuecomment-658536587


   From what I can gather, it appears that chrome has never supported `screen.orientation.lock`, but at some point they added the function, that raises an exception when used. (Maybe it's only supported on specific devices?)
   
   https://github.com/apache/cordova-plugin-screen-orientation/blob/3c08d393ffe0df5fa16f7fcbab06c22648dcc3ed/www/screenorientation.js#L57-L59
   
   These lines above checks for existing of the native api and uses it if available, then it looks like it falls back to a custom solution if not. I haven't tested this, but perhaps we can force use the fallback.
   
   The issue was raised back in 2017, but remained unresolved and archived (with no attached reason) in 2018. https://bugs.chromium.org/p/chromium/issues/detail?id=702069


----------------------------------------------------------------
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.

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