air 26 StageWebView IOS 7 black screen
Application crashes when using StageWebView on IOS 7 or lower.
I use this code:
if (StageWebView.isSupported)
{
var webView:StageWebView = new StageWebView(/* true of false does not matter in this case*/);
webView.stage = getStage();
webView.viewPort = getViewPort();
webView.loadUrl(url);
}
As a result I see black screen.
In debug mode I see exception on the line right after web view's initialization:
[Fault] exception, information=ArgumentError: Error #2004: One of the parameters is invalid.
IOS 7 does not support WKWebKit, so isn't it better to switch to UIWebKit in runtime for old versions?
Like suggests natively:
Xcode 6 + iOS 8 SDK but deploy on iOS 7 (UIWebKit & WKWebKit) - Stack Overflow
