hypery2k / nativescript-fabric

Handling App URLs in nativescript apps
MIT License
30 stars 14 forks source link

How to test crash after adding the plugin? #142

Open nairsubinp opened 5 years ago

nairsubinp commented 5 years ago

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

Kraften commented 5 years ago

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?