Skip to main content
Version: 4.3.1

Crash Reporting

This feature is automatically activated.
It is available in both debug and release flavours of the SDK.

With basic integration, Finotes will track and report uncaught exceptions to Finotes dashboard automatically.
Head over to How To Integrate section to complete the basic integration.

Block Finotes from Reporting Crashes

In case developers want to prevent Finotes from reporting uncaught exceptions that causes app to force close, call Fn.preventCrashReporting() after Fn.init().


public class BlogApp extends Application {
@Override
public void onCreate() {
super.onCreate();
Fn.init(this);
Fn.preventCrashReporting();
}
}

Whitelisting Crash Reports

Developers can whitelist crash reporting using Fn.whiteListCrashes() API.


public class BlogApp extends Application {
@Override
public void onCreate() {
super.onCreate();
Fn.init(this);
Fn.whiteListCrashes(NullPointerException.class, OutOfMemoryError.class);
}
}

Fn.whiteListCrashes() API takes exceptions and error classes as arguments separated by coma.
Once called, only crashes that are whitelisted using this API will be reported in Finotes dashboard.

Whitelisting crashes using Fn.whiteListCrashes() API will not work if Fn.preventCrashReporting() is called.