nativescript-fabric icon indicating copy to clipboard operation
nativescript-fabric copied to clipboard

How to test crash after adding the plugin?

Open nairsubinp opened this issue 6 years ago • 1 comments

I have added the Fabric plugin. How can I do a test crash to check if my plugin works and the Crashlytics reports crash?

nairsubinp avatar Feb 26 '19 16:02 nairsubinp

Hi there @nairsubinp I used:

public doForceCrashIOS(): void {
  Crashlytics.sharedInstance().crash();
}

public doForceCrashAndroid(): void {
  throw new java.lang.Exception("Forced an exception.");
}

Which i got from this link.

But i never got the android app to report error in the dashboard. Any ideas on what I am doing wrong?

Kraften avatar Apr 03 '19 12:04 Kraften