Windows Phone Silverlight 8.1 不支持 Windows.UI.Notifications.ToastNotification API?

编程入门 行业动态 更新时间:2024-10-11 13:25:22
本文介绍了Windows Phone Silverlight 8.1 不支持 Windows.UI.Notifications.ToastNotification API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试认证我的申请,但出现以下错误:发现错误:支持的 API 测试检测到以下错误:

I'm trying to certify my application but I get the following errors: Error Found: The supported APIs test detected the following errors:

This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotification. Module=. File=X.Service.dll. This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotification..ctor. Module=. File=X.Service.dll. This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotification.put_SuppressPopup. Module=. File=X.Service.dll. This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotificationManager. Module=. File=X.Service.dll. This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotificationManager.CreateToastNotifier. Module=. File=X.Service.dll. This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotificationManager.GetTemplateContent. Module=. File=X.Service.dll. This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotifier. Module=. File=X.Service.dll. This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotifier.Show. Module=. File=X.Service.dll. This API is not supported for this application type - Api=Windows.UI.Notifications.ToastTemplateType. Module=. File=X.Service.dll. Impact if not fixed: Using an API that is not part of the Windows SDK for Windows Phone Store apps violates the Windows Phone Store certification requirements.

但是,如果您查看这些 msdn 页面,您会发现 WP 8.1 Silverlight 明确支持它:msdn.microsoft/library/windows/apps/windows.ui.notifications.toastnotification.aspxmsdn.microsoft/en-us/library/windows.ui.notifications.aspx

However if you check these msdn pages you can see that it is clearly supported in WP 8.1 Silverlight: msdn.microsoft/library/windows/apps/windows.ui.notifications.toastnotification.aspx msdn.microsoft/en-us/library/windows.ui.notifications.aspx

最低支持手机Windows Phone 8.1 [Windows Phone Silverlight 8.1 和 Windows 运行时应用程序]

还有其他人遇到过这个问题吗?

Anyone else had this issue?

推荐答案

我发现了问题.它在 WMAppManifest.xml 中,如果您想使用 Windows.UI.Notifications,则必须选择 WNS,否则您必须使用 ShellToast.看看这个页面:

I've found the issue. It's in the WMAppManifest.xml, you have to select WNS if you want to use Windows.UI.Notifications otherwise you have the use ShellToast. Check this page out:

msdn.microsoft/en-us/library/windows/apps/dn642085%28v=vs.105%29.aspx

更多推荐

Windows Phone Silverlight 8.1 不支持 Windows.UI.Notifications.ToastNotification API

本文发布于:2023-06-11 00:11:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/621983.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不支持   Silverlight   Windows   Phone   Notifications

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!