ionic添加cordova插件-SMS

gzgchzc博客最新更新地址:http://blog.gzvtc.cc/

SMS
轻松发送短信支持iOS或Android

cordova plugin add cordova-sms-plugin

Examples

module.controller('ThisCtrl', function($cordovaSms) {

 document.addEventListener("deviceready", function () {

    $cordovaSms
      .send('phonenumber', 'SMS content', options)
      .then(function() {
        // Success! SMS was sent
      }, function(error) {
        // An error occurred
      });

  });

});
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页