[UWP] [C#]通知监听器未按预期工作 [英] [UWP][C#]Notification Listener is not working as expected
本文介绍了[UWP] [C#]通知监听器未按预期工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿我正在使用uwp通知监听器,这对于PC工作正常但是对于电话 我有一个例外。
hey I am working with uwp notification listener , and this is working fine for pc but for phone I got an exception.
这是我的代码。
try
{
UserNotificationListener listener = UserNotificationListener.Current;
var notifs = await listener.GetNotificationsAsync(NotificationKinds.Toast);
return notifs;
}
catch ( Exception e)
{
return null;
}
我得到了一个例外&"目标多字节代码页中没有Unicode字符的映射。 (来自HRESULT的异常:0x80070459)"
消息。
and I got an exception with "No mapping for the Unicode character exists in the target multi-byte code page. (Exception from HRESULT: 0x80070459)" message.
我的手机已开启 build 14977
my phone is on build 14977
我不知道该怎么做,任何帮助都会很棒。
I have no idea what to do , any help would be great.
谢谢。
推荐答案
嗨siblee,
我可以在我的Lumia830 14393.448上重现这个问题。我会向微软团队报告。如果有任何更新,我会在这里发布。
最好的问候,
David
Hi siblee,
I could reproduce the issue on my Lumia830 14393.448. And I will report it to the Microsoft team. If there is any update I’ll post it here.
Best Regards,
David
这篇关于[UWP] [C#]通知监听器未按预期工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文