Files
flipper/docs/setup/crash-reporter-plugin.md
Pritesh Nandgaonkar 367bb9a502 Updated the documentation of the crash reporter plugin
Summary: As per title

Reviewed By: passy

Differential Revision: D15181759

fbshipit-source-id: b184c730bbd349cd432956790e8dc192d3fd5ca0
2019-05-02 07:40:58 -07:00

1.0 KiB

id, title, sidebar_label
id title sidebar_label
crash-reporter-plugin Crash Reporter Setup Crash Reporter

You do not have to instantiate it in your app in order to use its basic functionality mentioned here. You can also use crash reporter plugin to send the notifications for the exception which you suppress in your Android application. You could even use it to send the notifications when the Litho Error Boundary is triggered. In order to send your custom notification you will have to follow the following steps.

Android

Instantiate and add the plugin in FlipperClient.

import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;

client.addPlugin(CrashReporterPlugin.getInstance());

Use the following API to trigger your custom crash notification.

import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
CrashReporterPlugin.getInstance().sendExceptionMessage(Thread.currentThread(), error);