Hello,
it could be a really huge improvement for us to add some possibility to add extra infos during the crash saving phase not only during upload process (Attachement system).
With HockeyApp we had implemented this as an extra step but it could be nice to have it natively in the plugin with AppCenter. We made some method abstract and we override them when it was wanted.
Or just extend the attachment system to this moment specifically.
This allow us to bring some extra information like this :
protected override List<string> GetLogHeaders()
{
List<string> list = base.GetLogHeaders();
if (ApplicationManager.Instance != null)
{
ApplicationManager.Instance.UpdateHockeyAppLogHeaders(list);
}
return list;
}
With this override, this allow us to obtain a log with "information" like the user in our system, what action he did before this occured etc...
Hey, @liszto, have you seen the text attachements API?
Yes I read this but as I said it's not what we need in our case :/
As a reminder, this is the method that we used with HockeyApp to send custom log to the backend :
/// <summary>
/// Collect all header fields for the custom exception report.
/// </summary>
/// <returns>A list which contains the header fields for a log file.</returns>
protected virtual List<string> GetLogHeaders ()
{
List<string> list = new List<string> ();
#if (UNITY_ANDROID && !UNITY_EDITOR)
using (var pluginClass = new AndroidJavaClass(JAVA_HOCKEYUNITYPLUGIN_CLASS))
{
var versionCode = pluginClass.CallStatic<string>("getVersionCode");
var versionName = pluginClass.CallStatic<string>("getVersionName");
var manufacturer = pluginClass.CallStatic<string>("getManufacturer");
var model = pluginClass.CallStatic<string>("getModel");
var deviceIdentifier = pluginClass.CallStatic<string>("getDeviceIdentifier");
list.Add("Package: " + packageID);
list.Add("Version Code: " + versionCode);
list.Add("Version Name: " + versionName);
var versionComponents = SystemInfo.operatingSystem.Split('/');
var osVersion = "Android: " + versionComponents[0].Replace("Android OS ", "");
list.Add (osVersion);
list.Add("Manufacturer: " + manufacturer);
list.Add("Model: " + model);
list.Add("CrashReporter Key: " + deviceIdentifier);
list.Add("Date: " + DateTime.UtcNow.ToString("ddd MMM dd HH:mm:ss {}zzzz yyyy").Replace("{}", "GMT"));
}
#endif
return list;
}
@annakocheshkova maybe you know more on this feature in appcenter ? :)
It's almost impossible to switch on AppCenter without this one for some of our project.
Just wanted to clarify this :) Apologies for double-checking. I'll let our PMs team look at this.
Hi @liszto thanks for the request! This isn't on our short term roadmap but I'd like to better understand your use case.
What types of logs/attachments are you looking to save? And are these attached to crash reports or just standalone logs? Would you be abe to use custom events to understand the user actions before a crash?
Just want to make sure I fully understand your use case. Thanks!
Those logs/attachment are custom string ones. And those ones are attached to crash report.
The display was like this on HockeyApp side :

The red part in the log uploaded on the platform is our custom header part.
It's not custom some sort of custom event, it's more custom data that we retrieve during the crash.
Where was the user (which menu, ids, etc...)
this is to allow us to understand the crash when the user just say :
My app crashes during my test yesterday night and he's not able to give us more information on the menu or stuff like this.
And this often happens that's why it's needed for us :/
Ok got it, thanks for the explanation. I'm going to move this issue to the App Center repo to track community interest. We don't have immediate plans to address this but you can follow our roadmap to see what our team is working on and I will also post here if I have any updates.
Thanks!
I also need urgently a feature to include the custom app state at the time when the app crashes in the crash report. See SetExceptionDescriptionLoader of Hockey app!
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.
This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.
Most helpful comment
I also need urgently a feature to include the custom app state at the time when the app crashes in the crash report. See SetExceptionDescriptionLoader of Hockey app!