Skip to content

Latest commit

 

History

History
49 lines (25 loc) · 900 Bytes

README.md

File metadata and controls

49 lines (25 loc) · 900 Bytes

Phonegap-SMS

PhoneGap plugin to send and receive sms

Supported Features

  • Send SMS
  • Check SMS feature availability
  • Start Receiving SMSs
  • Stop Receiving SMSs

Supported Platforms

  • Android

Usage

Installation

phonegap plugin add https://github.com/asanka-x/Phonegap-SMS.git

or

cordova plugin add https://github.com/asanka-x/Phonegap-SMS.git

Require the plugin module

var smsplugin = cordova.require("info.asankan.phonegap.smsplugin.smsplugin");

Methods

send

smsplugin.send(number,message,successCallback(result),failureCallback(error));

isSupported

smsplugin.isSupported(successCallback(result),failureCallback(error));

startReception

smsplugin.startReception(successCallback(result),failureCallback(error));

stopReception

smsplugin.stopReception(successCallback(result),failureCallback(error));