I am using Cordova 1.8.1 in xcode 4.3.3 and trying to add the ChildBrowser Plugin to my phonegap app.The ChildBrowser plugin I’m using is here which I think is the latest version of ChildBrowser and I follow the tutorial here to make sure it works on iOS Simulator 5.1,but can not open a link.
Here's my example index.html code....
<script type="text/javascript" charset="utf-8" src="childbrowser.js"></script>
<script type="text/javascript">
var childbrowser;
function onBodyLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady() {
navigator.notification.alert("Cordova is working");
}
function onLinkClick() {
window.plugins.childBrowser.onLocationChange = function(loc){ alert("In index.html new loc = " + loc); };
window.plugins.childBrowser.onClose = function(){alert("In index.html child browser closed");};
window.plugins.childBrowser.onOpenExternal = function(){alert("In index.html onOpenExternal");};
window.plugins.childBrowser.showWebPage('http://www.google.com',
{ showLocationBar: true });
console.log(window.plugins.childBrowser);
}
</script>
Does anyone have any ideas how I can get the ChildBrowser up and running?
Any help is greatly appreciated,thanks....