Files
flipper/docs/crash-reporter-plugin.md
Pritesh Nandgaonkar d9354fa484 Update Documentation
Summary: Updated documentation and screenshot for the new revamped UI

Reviewed By: passy

Differential Revision: D14643273

fbshipit-source-id: b05e19bcf42d00ce61a7cf61f93cbcd1d1f07a20
2019-03-28 04:37:54 -07:00

1.2 KiB

id, title
id title
crash-reporter-plugin Crash Reporter Plugin

The Crash Reporter Plugin shows a notification in Flipper whenever an app crashes. You can click on the notification to see crash information like stacktrace and other metadata. For Android, you can click the "Open in Logs" button to jump to the row in the Logs plugin with the crash information.

It also shows the list of crashes in the form of a dropdown. You can easily navigate the crashes using previous and next buttons in the UI.

The plugin looks like the following

UI

Notification

Setup

iOS

Add crash reporter plugin to the client.

Objective-C

#import <FlipperKitCrashReporterPlugin/FlipperKitCrashReporterPlugin.h>

[client addPlugin:[FlipperKitCrashReporterPlugin sharedInstance]];

Swift

import FlipperKit

client?.add(FlipperKitCrashReporterPlugin.sharedInstance());

Android

Add crash reporter plugin to the client.

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

client.addPlugin(CrashReporterPlugin.getInstance());