Attempting to create an iBeacon Cordova 3.x plugin for Android, however, encountering issues. Continuously receiving the following error:
Error adding plugin me.habel.plugins.IBeacon.IBeacon
exec() call to unknown plugin: IBeacon
Error: Class not found
Current directory structure:
MyiBeaconsPlugin
+ src
+ android
- IBeacon.java
+ www
- ibeacon.js
- plugin.xml
Content of IBeacon.java file:
package me.habel.plugins.IBeacon;
// Java code
Content of ibeacon.js file:
var ibeacon = {
// JavaScript code
}
module.exports = ibeacon;
Content of plugin.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Plugin details -->
Usage in index.js:
var app = {
// JavaScript code
};
Despite research and reviewing similar projects on Github, still unable to resolve the encountered error.
Any assistance would be greatly appreciated.