-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
Description
Does Rollbar have an equivalent to Appcenter's GetLastSessionCrashReportAsync for a Xamarin Forms app? I am trying to not have to mix-and-match Rollbar and Appcenter for crash reporting.
if (Crashes.HasCrashedInLastSessionAsync().Result)
{
ErrorReport crashReport = Crashes.GetLastSessionCrashReportAsync().Result;
if (crashReport.Exception == null)
Analytics.TrackEvent("AppCrashedInLastLaunch: Crash Report Exception is Null");
else
{
Crashes.TrackError(crashReport.Exception);
var dict = new Dictionary<string, string>();
dict.Add("CrashId", crashReport.Id);
dict.Add("StackTrace", crashReport.Exception.StackTrace);
Analytics.TrackEvent(string.Format("AppCrashedInLastLaunch: " + crashReport.Exception.Message), dict);
}
}