SMS

Improve this doc

$ ionic plugin add cordova-sms-plugin

Repo: https://github.com/cordova-sms/cordova-sms-plugin

Requires Cordova plugin: cordova-plugin-sms. For more info, please see the SMS plugin docs.

Supported platforms

Usage

import {SMS} from 'ionic-native';



// Send a text message using default options
SMS.send('416123456','Hello world!');

Static Methods

send(number, message, options)

Sends sms to a number

Param Type Details
number string|Array.<string>

Phone number

message string

Message

options smsOptions

Options

Returns: Promise<any> Resolves promise when the SMS has been sent

API

Native

General