You can clone with
window.plugins.childBrowser = new ChildBrowser();
Which, when run from the weinre console gives this error:
ReferenceError: Can't find variable: ChildBrowser
Workaround: Copy ChildBrowser.js from the iPhone directory. This one works fine.
Happen to Android as well.
I tried the Workaround with no luck: I get
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modally an active controller .'
I reverted to using the original file and I can call the child browser like this:
cordova.exec("ChildBrowserCommand.showWebPage", "http://www.site.com" );
@nickopris please describe your workaround
@gorekee I am not using window.plugins.childBrowser = new ChildBrowser();
I just call it like I mentioned above. Just double checked a few minutes ago to make sure it works.
I have this in my html:
and this in process.js
cordova.exec("ChildBrowserCommand.showWebPage", "http://www.google.com" );
Any updates on this issue? I can open ChildBrowser the first time but any other loads cause the error above.