StoreServicesFeedbackLauncher 不工作

ken*_*doo 3 c# windows-10 uwp

从 Windows 10 版本 1809(内部版本 17763)开始,从 UWP 应用程序启动反馈中心已结束,出现以下错误:-1073741819 (0xc0000005) '访问冲突'

if (StoreServicesFeedbackLauncher.IsSupported())
{
      FeedbackRadioButton.Visibility = Visibility.Visible;
}

private async void LaunchFeedbackHub(object sender, RoutedEventArgs e)
{
    try
    {                
        var launcher = StoreServicesFeedbackLauncher.GetDefault();
        await launcher.LaunchAsync();
    }
    catch (Exception ex)
    {
        Debug.WriteLine(ex.Message);
    }
}
Run Code Online (Sandbox Code Playgroud)

有参考Microsoft.Engagment.FrameworkMicrosoft.Services.Store.SDK已安装。在调试模式和发布模式下都会出现此问题。

那可能是什么?

Raf*_*era 5

更新 2/16: Microsoft 已逆转并在Microsoft.Services.Store.Engagement 10.1901.28001 中修复了此问题。


原答案:

这个 API 是出了名的不可靠。

如果可能,我建议切换到更简单的协议启动方法。下面提供了一些示例(导致 的默认激活类型URIFeedbackHome)。

启动反馈中心:

feedback-hub:
Run Code Online (Sandbox Code Playgroud)

使用 [类别:应用程序] 和 [子类别:EarTrumpet] 启动反馈中心

feedback-hub://?appid=40459File-New-Project.EarTrumpet_1sdd7yawvg6ne!EarTrumpet
Run Code Online (Sandbox Code Playgroud)

启动反馈中心,将“个人资料”选项卡作为活动选项卡

feedback-hub://?tabid=6
Run Code Online (Sandbox Code Playgroud)

目前没有关于其他更复杂场景(例如提供键值元数据、附加屏幕截图等)的公开信息。