Cordova短信插件
我正在用ApacheCordova sms插件编写一个VisualStudio2015项目。 我写这个小代码Cordova短信插件,cordova,visual-studio-2015,sms,Cordova,Visual Studio 2015,Sms,我正在用ApacheCordova sms插件编写一个VisualStudio2015项目。 我写这个小代码 function InviaSms() { var number = document.querySelector("#numberTxt").value; var message = document.querySelector("#messageTxt").value; //configurazione
function InviaSms()
{
var number = document.querySelector("#numberTxt").value;
var message = document.querySelector("#messageTxt").value;
//configurazione
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 () { $('#erroresms').text = 'Message sent successfully'; };
var error = function (e) { $('#erroresms').text = e; };
sms.send(number, message, options, success, error);
}
它在android平台上运行良好,但当我将其部署为Windows Phone通用应用程序时,sms功能不起作用
感谢Windows Universal,纯粹用Javascript实现这一点是“最干净的”看到这一点你能给我同样的提示吗?我是cordova应用程序的新手。谢谢。我用javascript在windows通用应用程序中编写代码