[ 
https://issues.apache.org/jira/browse/CB-8047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14504045#comment-14504045
 ] 

Shazron Abdullah commented on CB-8047:
--------------------------------------

Because of the async nature of JavaScript calls into WKWebView, the wkwebview 
engine cannot support calling into JavaScript to dynamically determine if an 
orientation is supported.

iOS calls "- (NSUInteger)supportedInterfaceOrientations" which is a synchronous 
call to determine which orientations are supported. For the UIWebView engine, 
this is fine since calling JavaScript is synchronous as well. However, the 
CDVWebViewEngineProtocol protocol which is implemented by both engines only 
support an async call into JavaScript.

Therefore, since the JavaScript function "window.shouldRotateToOrientation" is 
not documented and not officially supported, I am going to remove it for 4.0.x


> [WKWebView][iOS8] wkwebview / local webserver plugin orientation issue
> ----------------------------------------------------------------------
>
>                 Key: CB-8047
>                 URL: https://issues.apache.org/jira/browse/CB-8047
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: iOS
>         Environment: IOS
>            Reporter: Dustin Nielson
>            Assignee: Shazron Abdullah
>
> After installing the `wkwebview-engine` plugin on ios device (tested iPhone 
> 6, iPad mini 2, iPad retina) and enabling all orientations in xcode.  Upon 
> successful build the devices have fixed portrait orientation that doesn't 
> change when device is rotated.
> The `wkwebview` branch of cordova-ios was used. This problem does not occur 
> in the `master` branch.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to