cordova-plugin-sms-watch

1.1.8 • Public • Published

cordova-plugin-sms-watch

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-watch

When use with PhoneGap Build, write following line in your config.xml:

<gap:plugin name="cordova-plugin-sms" source="npm" />

API Overview

Methods

listSMS(filter, successCallback, failureCallback);
 
startWatch(successCallback, failureCallback);
stopWatch(successCallback, failureCallback);
 
enableIntercept(on_off, 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 

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i cordova-plugin-sms-watch

      Weekly Downloads

      1

      Version

      1.1.8

      License

      MIT

      Last publish

      Collaborators

      • vitohe