diff --git a/framework/src/org/apache/cordova/CordovaWebViewClient.java b/framework/src/org/apache/cordova/CordovaWebViewClient.java index 03ed2c1f..5eb24064 100755 --- a/framework/src/org/apache/cordova/CordovaWebViewClient.java +++ b/framework/src/org/apache/cordova/CordovaWebViewClient.java @@ -218,6 +218,7 @@ public class CordovaWebViewClient extends WebViewClient { // from the JS side when the JS gets to that code. if (!url.equals("about:blank")) { ctx.appView.loadUrl("javascript:try{ cordova.require('cordova/channel').onNativeReady.fire();}catch(e){_nativeReady = true;}"); + this.ctx.postMessage("onNativeReady", null); } // Make app visible after 2 sec in case there was a JS error and Cordova JS never initialized correctly