ionic添加cordova插件-SMS

版权声明:本文为博主gzgchzc原创文章,转载必须注明出处。http://blog.gzvtc.cc/ https://blog.csdn.net/qq_33561700/article/details/53884081

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
      });

  });

});
阅读更多

没有更多推荐了,返回首页