I am using Hockeyapp to log crashes in my Xamarin application.
For Android I used this code to auto submit crashes with little extra info:
Inside MainActivity OnCreate method:
CrashManager.Register(this, "APP_ID", new CustomCrashListener());
CustomCrashListener:
public class CustomCrashListener : CrashManagerListener
{
public override bool ShouldAutoUploadCrashes()
{
return true;
}
public override string UserID => "UserID recovered from settings.";
public override string Contact => "More info from settings.";
public override string Description => "Custom Description";
}
Now for the iOS I have found this to auto upload crashes:
Inside AppDelegate:
BITHockeyManager manager = BITHockeyManager.SharedHockeyManager;
manager.Configure("APP_ID");
manager.CrashManager.CrashManagerStatus = BITCrashManagerStatus.AutoSend;
manager.StartManager();
manager.Authenticator.AuthenticateInstallation();
My problem is that I can't find something similar to Android in iOS to send some extra little information with the auto send of crash logs, is there any way to do that in iOS?