cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-8047) [WKWebView][iOS8] wkwebview / local webserver plugin orientation issue
Date Tue, 21 Apr 2015 00:41:00 GMT


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:
>             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`

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message