For the complete documentation index, see llms.txt. This page is also available as Markdown.

Crash Reporting Event Handlers

Covered here is how to set up the event handlers that fire before every crash report is sent so a specific block of code is executed in your React Native app.

Before sending a report

This block is executed in the background before sending each report. It can be used for attaching logs and extra data to reports.

JavaScript
Luciq.onReportSubmitHandler(function () {
    // Attach logs and extra data to reports.
});

You can also set custom data, such as a user attribute, at any time, including inside event handlers. Logging user events in the event handlers is possible as well.

Last updated