0
在科爾多瓦在github.com/cordova-sms/cordova-sms-plugin/issues/8一直難過,我們可以使用多個號碼,但我有這個錯誤,科爾多瓦錯誤,「消息失敗:錯誤」
sendSms2: function (id) {
try {
var number = "'"+window.localStorage.getItem("NUMBERS") + "'";
var message = window.localStorage.getItem("TEXT");
alert(number + " : " + message);
console.log("number=" + number + ", message= " + message);
//CONFIGURATION
var options = {
replaceLineBreaks: false, // true to replace \n by a new line, false by default
android: {
intent: ''
}
};
var success = function() {
alert('Message sent successfully for:' + id);
};
var error = function (e) {
alert('Message Failed:' + e);
};
sms.send('9133333333,9122222222', message, options, success, error);
} catch (e) {
alert(e);
}
},
,但我得到「消息失敗:錯誤」的警報,
它的工作原理爲一體,而不是更多,