如何将自定义错误报告从应用程序发送到 Hockey

How to send custom error report from application to Hockey

如何从 Xamarin 表单应用程序向 Hockey 发送自定义错误报告? 我能够通过 hockey sdk 集成获得崩溃报告。我想处理异常并发送自定义消息 打曲棍球。

我试过用这种方式发送报告。

HockeyApp.BITHockeyManager.SharedHockeyManager?.MetricsManager?.TrackEvent("custom error report");

我用这种方式在app delegate中启用了曲棍球

var hocMgr = BITHockeyManager.SharedHockeyManager;
hocMgr.Configure("appKey");
hocMgr.DisableUpdateManager = true;
hocMgr.StartManager();
hocMgr.Authenticator.AuthenticateInstallation();

您还不能(请参阅来自支持的 recent link)。 HockeyApp 主要是为 'hard crashes' 而设计的,而不是为事件跟踪或自定义异常处理而设计的。当然,除了测试版分发和反馈。

随着 Xamarin Insights 的合并,这将会到来,但需要一些时间!

自定义事件跟踪是 in the preseason already。但您必须先被该计划录取。