Blogs updated for Cordova 2.x.x


I've updated my blogs for Cordova 2.x.x.

Below is a summary of the differences:


I've renamed a number of the files in the Plugin to make versioning a lot easier going forward.

Cordova config

Previously we registered the plugin within res\xml\plugins.xml.

Within Cordova 2.x.x, this is now res\xml\config.xml

Registering the plugin

The registering of a plugin is different under Cordova 2.x.x, and now needs to use cordova.define.

See myService-2.0.0.js as an example of how to do this.

Changes to calling the plugin

Under Cordova 1.8.1 the service is called (from the html) via window.plugins.myService.method(xxx).

Under Cordova 2.x.x you can drop the window.plugins so that it is just myService.method(xxx).

About the author:

Mark Taylor is an experience IT Consultant passionate about helping his clients get better ROI from their Software Development.

He has over 20 years Software Development experience - over 15 of those leading teams. He has experience in a wide variety of technologies and holds certification in Microsoft Development and Scrum.

He operates through Red Folder Consultancy Ltd.