如何在Mobile Center中添加有关崩溃的其他信息

Max*_*rit 1 xamarin mobile-center visual-studio-app-center

我开发了一个Xamarin.Android应用程序,我使用Xamarin.Insights来获取有关崩溃或发生错误的信息.

由于该视频(https://www.youtube.com/watch?v=E_uOgl-sO5A&t=680s),我正在将此项目迁移到移动中心.

我想知道如何在崩溃报告期间添加有关崩溃的其他信息.例如,我想知道用户是否连接到wifi,或用户的身份,或其他任何东西.或者我想在try catch中报告错误,其中包含有关此时使用的异常捕获和实际变量值的信息.

使用Xamarin.Insight,它非常简单:

string sAdditionnalInformation = exc.Message + sTitle + sDescription;
Insights.Report(exc, sAdditionnalInformation , Insights.Severity.Error);
Run Code Online (Sandbox Code Playgroud)

我怎么能用Mobile Center做到这一点?

我在这里看到了文档:https://docs.microsoft.com/en-us/mobile-center/sdk/crashes/xamarin

我知道有以下方法手动报告崩溃,但我无法添加其他信息:

Crashes.GenerateTestCrash() 
Run Code Online (Sandbox Code Playgroud)

我已经看到了下面的事件,但我不知道如何添加附加信息.我没有找到任何关于这方面的文件.

Crashes.SentErrorReport
Run Code Online (Sandbox Code Playgroud)

任何帮助将非常感谢请:-)

Luk*_*ieß 5

Mobile Center目前尚不支持此功能,但在其路线图上,请参阅此处的"崩溃"部分:https://docs.microsoft.com/en-us/mobile-center/general/roadmap

崩溃

  • 显示从门户网站中的Crashes SDK发送的附件