Appcenter UWP分析未经授权

时间:2018-12-21 19:43:54

标签: c# .net uwp windows-10 visual-studio-app-center

根据文档并使用HockeyApp的机密(App Center中的“无设置”页面)实施AppCenter分析。

AppCenter.Start("zzzzzzzzzzzzzzzzzzz", typeof(Analytics));

导致以下授权错误

[AppCenter] ERROR: Sending logs for channel 'core', batch 'xxxxxxxxxxxxxxx' failed: HTTP response status=401 (Unauthorized) payload=CorrelationId: yyyyyyyyyyyyyyyyy  ReasonCode: AppSecretDenied 

[AppCenter] ERROR: Sending logs for channel 'analytics', batch 'xxxxxxxxxxxxxx' failed: HTTP response status=401 (Unauthorized) payload=CorrelationId: yyyyyyyyyyy  ReasonCode: AppSecretDenied 

还有TrackEvent

上的以下错误
[AppCenter] WARN: Channel is disabled; logs are discarded

1 个答案:

答案 0 :(得分:1)

您必须在此处使用App Center应用程序密码。这不在“设置”页面中,而是在概述页面上。在“应用程序中心”中转到您的应用程序,然后点击概述标签。在这里,您应该看到入门指南,该指南应直接显示您必须使用的确切代码(应用程序密码已在屏幕截图中删除):

App secret