简体   繁体   English

Windows Phone 10中的ChatMessageManager

[英]ChatMessageManager in Windows Phone 10

I'm building an app that composes a SMS and then it uses ChatMessageManager to show the send new sms dialog. 我正在构建一个组成SMS的应用程序,然后使用ChatMessageManager显示发送新的短信对话框。 This works just fine in Windows Phone 8.1 but it will not show the SMS dialog in Windows Phone 10. 这在Windows Phone 8.1中运行良好,但它不会在Windows Phone 10中显示SMS对话框。

Anyone who knows if there is a big difference in 8.1 and 10 with that SMS dialog? 有人知道这个短信对话的8.1和10是否有很大的不同? Anyone who knows hot to work around it? 谁知道热谁来解决它?

Using a code more or less the same as this: https://stackoverflow.com/a/24900268/1787551 使用与此大致相同的代码: https//stackoverflow.com/a/24900268/1787551

    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);
    }

I'm calling the SendMessage method with await, of course. 当然,我正在等待调用SendMessage方法。 This works for me on Windows 10 Mobile. 这适用于Windows 10 Mobile。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM