如何在不打开短信应用程序的情况下发送短信
How to send SMS without opening the SMS app
我可以直接向 Windows Phone 发送短信,而不是通过短信应用程序吗?
我已经编写了通过应用程序发送的函数
public async void SendSms(string phone, string message)
{
var chatMessage = new ChatMessage();
if (phone != null)
{
chatMessage.Recipients.Add(phone);
}
chatMessage.Body = message;
await ChatMessageManager.ShowComposeSmsMessageAsync(chatMessage);
}
现在,我想通过标准应用程序发送短信。
无法使用原生 Windows Phone SDK,因为哲学 "user first" 不允许这种行为。在发送任何 SMS 之前,您必须先查看 SMS 应用程序。您必须通过 http 使用外部服务才能获得您想要的内容。
我可以直接向 Windows Phone 发送短信,而不是通过短信应用程序吗?
我已经编写了通过应用程序发送的函数
public async void SendSms(string phone, string message)
{
var chatMessage = new ChatMessage();
if (phone != null)
{
chatMessage.Recipients.Add(phone);
}
chatMessage.Body = message;
await ChatMessageManager.ShowComposeSmsMessageAsync(chatMessage);
}
现在,我想通过标准应用程序发送短信。
无法使用原生 Windows Phone SDK,因为哲学 "user first" 不允许这种行为。在发送任何 SMS 之前,您必须先查看 SMS 应用程序。您必须通过 http 使用外部服务才能获得您想要的内容。