我正在构建一个组成SMS的应用程序,然后使用ChatMessageManager显示发送新的短信对话框。 这在Windows Phone 8.1中运行良好,但它不会在Windows Phone 10中显示SMS对话框。
任何知道8.1和10与SMS对话框是否存在重大差异的人? 谁知道热谁来解决它?
答案 0 :(得分:0)
public async static Task SendMessage (string phoneNumber)
{
ChatMessage msg = new ChatMessage();
msg.MessageKind = Windows.ApplicationModel.Chat.ChatMessageKind.Standard;
msg.Recipients.Add(phoneNumber);
await ChatMessageManager.ShowComposeSmsMessageAsync(msg);
}
当然,我正在等待调用SendMessage方法。这适用于Windows 10 Mobile。