controller部分代码:
document.addEventListener("deviceready",function(){
var options = {
replaceLineBreaks: false, // true to replace \n by a new line, false by default
android: {
intent: 'INTENT' // send SMS with the native android SMS messaging
//intent: '' // send SMS without open any other app
}
};
$cordovaSms
.send('member.mobile', 'content', options)
.then(function() {
alert("Success! SMS was sent")
}, function(error) {
// An error occurred
});
});