SMS
$ 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
- Android
- iOS
- Windows Phone 8
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