2016-02-27 243 views
0

我正在用apache Cordova s​​ms插件編寫一個visual studio 2015項目。 我寫這篇文章豆蔻代碼科爾多瓦短信插件

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的通用應用短信功能不起作用。

感謝

回答