我目前正在将HockeyApp集成到我在Xamarin上的IOS项目中,我希望能够将用户名附加到崩溃报告中,但我无法弄清楚如何。它甚至可能吗?
答案 0 :(得分:6)
您可以使用以下示例将用户名和其他元数据附加到报告中:
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
var manager = BITHockeyManager.SharedHockeyManager;
manager.Configure(AppID);
manager.UserEmail = "user@contoso.com";
manager.UserId = "UserID";
manager.UserName = "UserName";
manager.DebugLogEnabled = true;
manager.StartManager();
manager.Authenticator.AuthenticateInstallation(); // This line is obsolete in crash only builds
global::Xamarin.Forms.Forms.Init();
LoadApplication(CreateApp());
return base.FinishedLaunching(app, options);
}