Your custom Cordova plugin needs to follow these requirements:
It should be compatible with Cordova 4.2 or higher.
It must have a plugin.xml file and is installable with plugman
command line tool.
It must support iOS and Android platforms.
You can find many Cordova plugins in the internet, but it is likely that they are either obsolete or their versions do not match. Therefore, how to create a custom Cordova plugin from scratch is covered in this page.
Structure of a Cordova plugin
A typical structure of a Cordova plugin is as follows (directories are displayed in bold letters):
Before getting started, please download the following zip file containing sample plugin code.
Here are the guides about native code development.
To import a custom Cordova plugin, please do as follows:
From the Monaca Cloud IDE, go to Configure→Cordova plugin Settings.
The Cordova Plugins page will open. Click the Import Cordova Plugin button.
3. Then, browse your plugin file (zip file) and click OK.
Monaca Debugger with custom Cordova plugin
The standard Monaca Debugger, which can be found in the store such as App Store or Google Play, includes the standard (core) and several third-party Cordova plugins (refer to Third-party Cordova Plugins for the list of all third-party Cordova plugins pre-included in Monaca). For this reason, the standard Monaca Debugger cannot be used with Monaca projects containing custom or other external third-party Cordova plugins. In this case, custom built Monaca Debugger is required to run such projects properly.
Custom built Monaca Debugger is a debugger which is built within Monaca Cloud IDE inside a project containing custom or external third-party Cordova plugins. Please refer to the following links on how to build custom built debugger and the differences between the standard and custom built debugger: