Skip to main content
Version: 5.7.0

SubmitCrashReport

Allows the system to send a Crash Report to the servers, to be forwarded to any connected DataStream services.

This API can be called silently by the app - or can be sent after presenting an error dialog to the user (requestion more info). User submitted reports should be flagged as such, so that the app's support team knows to follow up.

ServiceOperation
dataStreamSEND_CRASH_REPORT

Method Parameters

ParameterDescription
crashTypeIdentifies the crash category. Developer-defined, can be anything.
errorMsgShort message describing the crash.
crashJsonException data.
crashLogClient log up until the crash (if available.)
userNameName provided by the user (if provided.)
userEmailEmail address to respond to (if provided.)
userNotesNotes provided by the user (if provided.)
userSubmittedUser submitted flag.

Usage

http://localhost:3000
string crashType = "unknown";
string errorMsg = "Divide by zero error";
string crashJson = "{\"dialog\":5}";
string crashLog = "funcX(a,b,c)/ncalled by funcY(a,b,c)";
string userName = "";
string userEmail = "";
string userNotes = "";
bool userSubmitted = false;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.DataStreamService.SubmitCrashReport(crashType, errorMsg, crashJson, crashLog, userName, userEmail, userNotes, userSubmitted, successCallback, failureCallback);