New this build: official support for WKWebView on iOS via Cordova, and some more workarounds for bugs in Safari.
Since the last beta, we also released support for NW.js 0.13.0-beta7 and NW.js 0.13.0-rc1. You can download updates from scirra.com/nwjs.
- When exporting for Cordova, tick the "Use WKWebView" option to enable it.
- This will only take effect on iOS 9+ devices.
- Right now it's only supported on PhoneGap Build (we hope to add support via the Intel XDK soon).
- Currently PhoneGap Build defaults to an older version of Cordova which does not support WKWebView. To make sure it's supported, you need to edit your config.xml file to include this line: <preference name="phonegap-version" value="cli-6.0.0" />
This should not be necessary any more after PhoneGap Build updates the default version.
- Due to workarounds to WKWebView issues, it's possible app will load more slowly and use more memory. However overall performance should be significantly improved.
- Unfortunately due to a difficult WKWebView issue, video is not supported. Hopefully future updates in iOS will address this.
Despite the caveats, the performance improvement can be dramatic in some cases. The renderperfgl sprite test on an iPhone 4S can reach about 1100 sprites normally, but about 4400 with WKWebView. Not bad! This only improves CPU performance - GPU-bottlenecked cases won't improve much - but it's still great to have the option. We'll be blogging about this in more detail soon (assuming it works for a reasonable number of people!).
We'd love it if you could show your appreciation of it by retweeting and sharing it on Facebook and Twitter!