GeorgeW
GeorgeW

Reputation: 566

PhoneGap 0.9.5 can not get latest Android ChildBrowser plugin to work

I followed steps from

https://github.com/purplecabbage/phonegap-plugins/tree/master/Android/ChildBrowser

I also checked everything listed on this post and still could not get it to work.

http://stackoverflow.com/questions/5727052/childbrowser-with-phonegap-on-android

I am using the PhoneGap add-in to Eclipse Helios for IDE.

I tried below code

var url="http://www.google.com";

document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady() {
    alert('device ready.');
    window.plugins.childBrowser.showWebPage(url);       
}

alert works fine, but childBrowser plugin won't show. The js code worked in childbrowser.js until below line:

PhoneGap.exec(this._onEvent, null, "ChildBrowser", "showWebPage", [url, options]);

And my debug statement in ChildBrowser.java is not being executed.

Can some guru shed some light?

Upvotes: 1

Views: 462

Answers (1)

Paul Beusterien
Paul Beusterien

Reputation: 29572

The ChildBrowser has changed a lot lately and the instructions are likely wrong for PhoneGap 0.9.5. If you really need to stick with 0.9.5, you could get an older version of the ChildBrowser from github.

A better approach would be to use a more recent version of PhoneGap. You can download the latest PhoneGap directly yourself or update to latest AppLaud Eclipse plug-in which is bundled with 1.0.0 (1.1.0 will come later this week). You can get it in Eclipse with Help -> Install New Software https://svn.codespot.com/a/eclipselabs.org/mobile-web-development-with-phonegap/tags/r1.2/download

Upvotes: 1

Related Questions