Windows Phone 10中的ChatMessageManager

时间:2015-02-18 12:42:02

标签: c# sms windows-phone-8.1

我正在构建一个组成SMS的应用程序,然后使用ChatMessageManager显示发送新的短信对话框。 这在Windows Phone 8.1中运行良好,但它不会在Windows Phone 10中显示SMS对话框。

任何知道8.1和10与SMS对话框是否存在重大差异的人? 谁知道热谁来解决它?

使用与此类似的代码:https://stackoverflow.com/a/24900268/1787551

1 个答案:

答案 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。