I am currently experimenting with the sms-reception-plugin implementation.
After creating the plugin.xml
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova.plugin"
version="0.1.2" >
<name>SmsReception</name>
<description>Cordova SmsReception Plugin</description>
<license>Apache 2.0</license>
<keywords>cordova,smsreception</keywords>
<js-module src="www/SmsInboxPlugin.js" name="cordova.plugin.smsplugin">
<clobbers target="cordova.plugin" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="SmsPlugin">
<param name="android-package" value="org.apache.cordova.plugin.SmsInboxPlugin" />
</feature>
</config-file>
<source-file src="src/android/SmsInboxPlugin.java" target-dir="src/org/apache/cordova/plugin" />
<source-file src="src/android/SmsReceiver.java" target-dir="src/org/apache/cordova/plugin" />
</platform>
</plugin>
Next, I incorporated this code in .html
var smsPlugin = cordova.require('cordova/plugin/smsplugin');
but encountered the error Uncaught module cordova/plugin/smsplugin not found
I followed the guidelines in creating the plugin.xml
mentioned here.
If anyone has any insights, please assist me.