Ti.WKWebView Versions Save

? Support the WKWebView with Appcelerator's Titanium Mobile

v2.8.4

5 years ago
  • Fix issue TIMOB-26490

v2.8.3

5 years ago
  • Fix possible crash when using main-thread

v2.8.2

5 years ago
  • Fix crashes on iOS 12 when using kroll-thread (MOD-2464)
  • Mark synchronous evalJS as deprecated on iOS 12+ due to internal iOS-changes (MOD-2464)

Since iOS 12.0, using evalJS in sync is not possible anymore, because the internal callback is now called on the main thread, causing a deadlock in the run-loop that is used to return the value synchronously. To fix this, please use the asynchronous solution:

- alert(webView.evalJS('document.title'));

+ webView.evalJS('document.title', function (e) {
+     alert(e.result);
+ });

v2.8.1

5 years ago
  • Fix typo in scalePageToFit => scalesPageToFit
  • Internal: Lint all sources

v2.8.0

5 years ago
  • Add full parity with the current Ti.UI.WebView.

Note: Titanium SDK 8.0.0+ will use the WKWebView class for the Ti.UI.WebView API by default and the minimum target will be iOS 9.0.

Using the module in Alloy:

<Alloy>
    <WebView module="ti.wkwebview" url="https://appcelerator.com" />
</Alloy>

v2.7.0

5 years ago
  • Support Ti.App.fireEvent functionality
  • Support Ti.API.info, Ti.API.warn, Ti.API.debug, Ti.API.fatal, Ti.API.error functionality

v2.6.0

6 years ago
  • Expose addUserScript method
  • Expose removeAllUserScripts method
  • Expose addScriptMessageHandler method
  • Expose removeScriptMessageHandler method
  • Fix default localizations for "OK" and "Cancel"
  • Fix local URL handling for nested resources

v2.5.0

6 years ago
  • Expose handleurl event to handle custom URL schemes (#17) by @anthonychung
webView.addEventListener('handleurl', function(e) {
  Ti.API.info('Handling URL: ' + e.url);
  Ti.Platform.openURL(e.url);
  e.handler.invoke(WK.ACTION_POLICY_CANCEL); // or ACTION_POLICY_ALLOW
});

v2.4.2

6 years ago
  • Add initial-scale=1, maximum-scale=1 to user-script used for scalePageToFit

v2.4.1

6 years ago
  • Fix disableZoom, scalePageToFit and disableContextMenu on initial usage (#16)