SMS

Contents

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

Installation

ionic cordova plugin add cordova-sms-pluginnpm install @ionic-native/sms
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEYnpm install @ionic-enterprise/sms

Supported Platforms

  • Android
  • iOS
  • Windows
  • Windows Phone 8

Usage

import { SMS } from '@ionic-native/sms/ngx';

constructor(private sms: SMS) { }


...


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