Alex Rivera | Logout

Mapping error with ChildBrowser and PhoneGap 1.5.0 (Cordova)

Asked 2012-03-14T19:11:38.803
8

When I try to call:

window.plugins.childBrowser.showWebPage

I get this error in the console window:

2012-03-13 16:14:58.036 CordovaHybridDemo[874:707] ERROR: Plugin 'ChildBrowserCommand' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.

I added an entry in Cordova.plist with a key of ChildBrowserCommand and a value of ChildBrowserCommand. That worked in PhoneGap 1.4.1 but has that changed for Cordova?

Edit
Report

1 Answer

1

Cordova changing their plugin architecture. Including keywords and files, classes.

Check your ChildBrowserCommand.h file

@interface ChildBrowserCommand : CDVPlugin <ChildBrowserDelegate>  

For this. If it is not CDVPlugin you have not updated your plugin files successfully. Analogy might be apply for Android.

Check the updated js file for the plugin also.

var cordovaRef = window.PhoneGap || window.Cordova || window.cordova; // old to new fallbacks

Here they make plugins usable for new cordova.

Refer this plugin upgration guide by Cordova https://github.com/phonegap/phonegap-plugins/blob/master/iOS/README.md

answered 2012-05-16T06:42:10.233

Your Answer