Don't Miss Out

Follow us now so you don't miss new releases!


Lightning Draw

condolent

9.5 seconds

condolent

45.413 seconds

Kribzy

57.94 seconds

For the first 3 people to download this release!

Quick Draw

Guest

1m 4s

NaSTy

5m 42s

zenox98

5m 23s

Guest

7m 42s

Guest

10m 48s

Guest

10m 4s

Guest

11m 57s

Guest

12m 31s

facecjf

16m 38s

Jijiji

20m 27s

Jijiji

21m 35s

Be one of the first 15 people to download this release!

Construct 2 Release r224

This is an old Beta release! Download the latest Beta release instead here.
Download

59.4 mb, Windows 8/Windows 7/Vista/XP

Thursday, March 03, 2016

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.

WKWebView support

WKWebView is the new webview on iOS to replace UIWebView. Until now, all Javascript in Cordova apps on iOS have been stuck in a slower interpreter mode. WKWebView adds support for JIT compilation, which means compiling Javascript to native code like Safari does. This can improve performance significantly! However WKWebView has several bugs which has made it difficult to support. You also need to make a few tweaks to use it right now. Here's a quick run-down of what you need to know:

  • 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!).

Changelog

Feature

Cordova export: option to enable WKWebView support using the official Cordova plugin (for iOS 9+).

Add

Cordova export: new option to "Use new Intel XDK project format". This is in preparation for a future version of the XDK which is not yet available; please leave it disabled for the time being.

Change

Cordova export: remove the 'devices' option; always defaults to 'universal' now.

Change

Cordova export: updated format of config.xml to track PhoneGap Build updates.

Change

Cordova export: references to the old org.apache.cordova.inappbrowser plugin have been replaced with the new ID cordova-plugin-inappbrowser

Change

For ancient compatibility reasons, the following names are not allowed to be used as object names: CON, PRN, AUX, NUL, COM1-COM9, LPT1-LPT9.

Bug Fix

More fixes aimed at working around Safari viewport bugs. We have tested a range of devices from iPhone 4S to an iPad Pro, and everything should be working better now with correct sizing, including after waking the device.


Do you like this release?

We'd love it if you could show your appreciation of it by retweeting and sharing it on Facebook and Twitter!

Posted by Scirra Ltd on 3/3/2016

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.