$cordovaSMS



cordova发送短信插件,轻松发送短信支持iOS或Android



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


代码实例

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

  });

});