1.0.15 • Published 3 years ago

cordova-plugin-sms-manager v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

cordova-plugin-sms-manager

Plugin to operate SMS, send / list / intercept / delete / restore.

How to Use?

Use the plugin with Cordova CLI (v5.x or above):

cordova plugin add cordova-plugin-sms

API Overview

Methods

sendSMS(address(s), text, successCallback, failureCallback);
listSMS(filter, successCallback, failureCallback);
deleteSMS(filter, successCallback, failureCallback);

startWatch(successCallback, failureCallback);
stopWatch(successCallback, failureCallback);

enableIntercept(on_off, successCallback, failureCallback);
restoreSMS(msg_or_msgs, successCallback, failureCallback);

setOptions(options, successCallback, failureCallback);

Events

"onSMSArrive";

Quick Start

	# create a demo project
    cordova create test1 com.rjfun.test1 Test1
    cd test1
    cordova platform add android

    # now add plugin
    cordova plugin add cordova-plugin-sms

    # copy the demo file
    rm -r www/*; cp plugins/cordova-plugin-sms/test/* www/;

	# now build and run the demo in your device or emulator
    cordova prepare;
    cordova run android;

    # or import into Xcode / eclipse

Documentation

Check the API Reference

Check the Example Code in test/index.html.

Demo

ScreenShot