Corona SDK native.newWebView() 不适用于 windows 构建

corona sdk native.newWebView() dont work on windows build

在模拟器上使用 native.newWebView() 时,我得到:

WARNING: Web views are not supported in the simulator. Please build for device.

在 windows 构建中使用 native.newWebView() 时出现黑屏,Corona 输出查看器中没有错误。

在两者中,我都尝试了一个新项目,其中包含以下 main.lua 文件:

local webView = native.newWebView( display.contentCenterX, display.contentCenterY, 320, 480 )
webView:request( "http://www.coronalabs.com/" )

该文档并未表明与该平台不兼容。我是 运行 CoronaSDK-2016.2992.msi 和 Windows 10 Pro.

怎么了?

来自科罗纳 documentation

Native web views are only(*) supported on Android, iOS, the Corona Simulator for OS X, and OS X desktop apps

(*) see below

来自科罗纳 Blog

Native web view objects are now available for both the Corona Simulator for Windows and Win32 desktop builds. It apply to version 2017.3068 and later.

也许 this 有帮助。