Windows Phone Silverlight 8.1 不支持 Windows.UI.Notifications.ToastNotification API? [英] Windows.UI.Notifications.ToastNotification API not supported in Windows Phone Silverlight 8.1?

查看:23
本文介绍了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 明确支持它:http://msdn.microsoft.com/library/windows/apps/windows.ui.notifications.toastnotification.aspxhttp://msdn.microsoft.com/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: 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 运行时应用程序]

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

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:

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

这篇关于Windows Phone Silverlight 8.1 不支持 Windows.UI.Notifications.ToastNotification API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆