我正在尝试认证我的申请,但出现以下错误:发现错误:支持的 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
发布评论