October 2014
Intermediate to advanced
332 pages
6h 56m
English
As specified in our plugin.xml file's platform section for Windows Phone 8 (wp8), the implementation of our plugin in wp8 is located at src/wp8/Sms.cs. The following code snippet shows Sms.cs code:
using System; using Microsoft.Phone.Tasks; using WPCordovaClassLib.Cordova; using WPCordovaClassLib.Cordova.Commands; using WPCordovaClassLib.Cordova.JSON; namespace WPCordovaClassLib.Cordova.Commands { public class Sms : BaseCommand { public void sendMessage(string options) { string[] optValues = JsonHelper.Deserialize<string[]>(options); String number = optValues[0]; String message = optValues[1]; SmsComposeTask sms = new SmsComposeTask(); sms.To = number; sms.Body = message; sms.Show(); /*Since there is no way to track ...Read now
Unlock full access