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

C# Windows Phone Silverlight 8.1不支持Windows.UI.Notifications.ToastNotification API?,c#,windows-phone,windows-phone-8.1,C#,Windows Phone,Windows Phone 8.1,我试图证明我的申请,但我得到以下错误: 发现错误:受支持的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.Notific

我试图证明我的申请,但我得到以下错误: 发现错误:受支持的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中明确支持此功能:

支持的最低电话号码
Windows Phone 8.1[Windows Phone Silverlight 8.1和Windows运行时应用程序]


还有其他人有这个问题吗?

我发现了这个问题。它位于WMAppManifest.xml中,如果要使用Windows.UI.Notifications,则必须选择WNS,否则将使用ShellToast。查看此页面: