SMS

轻松发送短信支持iOS或Android

代码实例

1.module.controller('ThisCtrl', function($cordovaSms) {
2.
3. document.addEventListener("deviceready", function () {
4.
5. $cordovaSms
6. .send('phonenumber', 'SMS content', options)
7. .then(function() {
8. // Success! SMS was sent
9. }, function(error) {
10. // An error occurred
11. });
12.
13. });
14.
15.});