我试图发送给一群人短信,但我可以看到短信只发送给一个人.我的代码是:
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
}
};
var success = function () { alert('Message sent successfully'); };
var error = function (e) { alert('Message Failed:' + e); };
sms.send(['0544462095',.........,'0547549701'],
$scope.sms.context, options, success, error);
我用的是离子1和cordova 6+,你知道为什么吗?
发布于 2016-10-11 11:03:56
你不能这么做。您只能指定多个电话号码的意图:“意图”启动一个彩信。在您的情况下,您必须迭代您的电话机数组,并每次调用$cordovaSms.send()。
https://stackoverflow.com/questions/39792861
复制相似问题