For several days, we have been reporting the same error and found that you cannot immediately call childBrowser directly from your index.html, probably because it takes some time for the childBrowser plugin to initialize to complete.
This solution works:
setTimeout(function() {
window.console.log('Opening Childbrowser...');
window.plugins.childBrowser.showWebPage("http://www.google.com", { showLocationBar: true });
}, 3500);
In other words: you need to wait until the childBrowser object becomes available, but of course there are more elegant solutions.
DISCLAIMER: checked with the current release of 1.7.0rc1 Cordaova, not sure if this works for 1.6.1.
source
share