I have this code:
var msg = new ChatMessage();
msg.Body = "Test";
msg.Recipients.Add("number");
var cms = await ChatMessageManager.RequestStoreAsync();
await cms.SendMessageAsync(msg);
and I have a problem with the expectation part above. I get an exception:
Access is denied.
In the features in appxmanifestI chose:
Access Chat Messages
(I tried to select everything, but that didn't work). I can not find a sample and the requirements that must be met.
Thank you for your help.
source
share