SMS

Contents

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

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

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic 发送短信 SMS插件的安装(Installation)

ionic cordova plugin add cordova-sms-plugin npm 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=YOURPRODUCTKEY npm install @ionic-enterprise/sms

Ionic 发送短信 SMS插件支持的平台(Supported Platforms)

  • Android
  • iOS
  • Windows
  • Windows Phone 8

Ionic 发送短信 SMS插件的用法(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!');