Book Image

JavaScript Mobile Application Development

Book Image

JavaScript Mobile Application Development

Overview of this book

Table of Contents (15 chapters)
JavaScript Mobile Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Developing a custom Cordova plugin


Before going into the details of the plugin, it is important to note that developing custom Cordova plugins is not a common scenario if you are developing Apache Cordova apps. This is because the Apache Cordova core and community custom plugins already cover many of the use cases that are needed to access device's native functions. So, make sure of two things:

  • You are not developing a custom plugin that already exists in the Apache Cordova core plugins, which were illustrated in the previous two chapters.

  • You are not developing a custom plugin whose functionality already exists in other good Apache Cordova custom plugin(s) that have been developed by the Apache Cordova development community. Building plugins from scratch can consume precious time from your project; otherwise, you can save time by reusing one of the available good custom plugins.

Another thing to note is that developing custom Cordova plugins is an advanced topic. It requires you to be aware...