Plugins
For an app to communicate with various device-level features, you need to add plugins that provide access to core PhoneGap/Cordova APIs. These include geolocation, network information, battery status, camera, and device orientation. A plugin is add-on code that provides an interface for native components.
Note
For a full list of the 500 plugins, go to http://plugins.cordova.io/#/viewAll.
A plugin is added using the command line. You can add the geolocation by using the following command:
>cordova plugin add org.apache.cordova.geolocation