This is an automated email from the ASF dual-hosted git repository. shazron pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cordova-plugin-wkwebview-engine.git
The following commit(s) were added to refs/heads/master by this push: new bf0f236 CB-12815: (ios) Fix bug nativeCallback not executed when app is in background (#49) bf0f236 is described below commit bf0f23607e894aa5fd49578021d8511df33e3b9a Author: Nauzer <m...@caught.nu> AuthorDate: Thu Aug 23 08:31:07 2018 +0200 CB-12815: (ios) Fix bug nativeCallback not executed when app is in background (#49) * CB-12815: (ios) Fix bug nativeCallback not executed when app is in background * Update package.json version to 1.2.0-dev Add back eslint ignore line --- package.json | 2 +- src/www/ios/ios-wkwebview-exec.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 817adc0..2b57899 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-wkwebview-engine", - "version": "1.1.5-dev", + "version": "1.2.0-dev", "description": "The official Apache Cordova WKWebView Engine Plugin", "main": "index.js", "repository": { diff --git a/src/www/ios/ios-wkwebview-exec.js b/src/www/ios/ios-wkwebview-exec.js index e18b5f2..f2992c0 100644 --- a/src/www/ios/ios-wkwebview-exec.js +++ b/src/www/ios/ios-wkwebview-exec.js @@ -124,9 +124,7 @@ var iOSExec = function () { iOSExec.nativeCallback = function (callbackId, status, message, keepCallback, debug) { var success = status === 0 || status === 1; var args = convertMessageToArgsNativeToJs(message); - setTimeout(function () { - cordova.callbackFromNative(callbackId, success, status, args, keepCallback); // eslint-disable-line - }, 0); + Promise.resolve(cordova.callbackFromNative(callbackId, success, status, args, keepCallback)); // eslint-disable-line }; // for backwards compatibility --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org