gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 10:41:23 40 4
gpt4 key购买 nike

我正在尝试验证我的应用程序,但出现以下错误:发现错误:支持的 API 测试检测到以下错误:

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 明确支持它: http://msdn.microsoft.com/library/windows/apps/windows.ui.notifications.toastnotification.aspx http://msdn.microsoft.com/en-us/library/windows.ui.notifications.aspx

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

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

最佳答案

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

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

关于c# - Windows Phone Silverlight 8.1 不支持 Windows.UI.Notifications.ToastNotification API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25230959/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com