Book Image

PhoneGap 4 Mobile Application Development Cookbook

Book Image

PhoneGap 4 Mobile Application Development Cookbook

Overview of this book

Table of Contents (19 chapters)
PhoneGap 4 Mobile Application Development Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

The plugin repository


Cordova enables developers to create their own plugin to extend hybrid application capabilities. This plugin system enables hybrid applications to get native capabilities. Almost any native functionality can be implemented using plugins.

Sometimes, creating our own plugin will take more time. We have to know each of the platform's languages, create code specific to each platform, and then create a JavaScript interface to make it work with an HTML application. It would be easier for us to use an existing plugin or an open source Cordova plugin.

Luckily, there is a centralized repository of Cordova plugins. We can search for the plugin we need and then add it to our Cordova application.

How to do it…

To search and use a Cordova plugin from the repository, follow these steps:

  1. Open http://plugins.cordova.io/#/, and you will see a search box to start searching for a plugin, like this:

  2. Let's find a plugin for implementing local notifications for the Cordova application. We type...