From a688319ea7144bfe1bdec39f600fbed5e7e70b6a Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Tue, 20 Mar 2012 15:22:00 -0700 Subject: [PATCH] First stab at CB-21, I really need more info before I can close this --- framework/src/org/apache/cordova/CordovaWebViewClient.java | 1 + 1 file changed, 1 insertion(+) 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