メインコンテンツまでスキップ
Version: v6

SMS

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

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

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation

$ npm install cordova-sms-plugin 
$ npm install @awesome-cordova-plugins/sms
$ ionic cap sync

Supported Platforms

  • Android
  • iOS
  • Windows
  • Windows Phone 8

Usage

React

Learn more about using Ionic Native components in React

Angular

import { SMS } from '@awesome-cordova-plugins/sms/ngx';

constructor(private sms: SMS) { }


...


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