React-native-firebase: Crashlytics force crash error

Created on 10 Oct 2018  路  4Comments  路  Source: invertase/react-native-firebase

Issue

On Android, when forcing a crash with firebase.crashlytics().crash();, app throws an error as shown here:

screenshot_20181010-204503

I use my own device connected via USB.

Environment

  1. Application Target Platform:

Android

  1. Development Operating System:

macOS Mojave

  1. Build Tools:

Android Studio

  1. React Native version:

0.55.6

  1. React Native Firebase Version:

4.3.8

  1. Firebase Module:

Crashlytics

  1. Are you using typescript?

no

Crashlytics 0_o Docs

Most helpful comment

This is as intended - crash() causes a crash for testing purposes as indicated in the docs:

https://rnfirebase.io/docs/v5.x.x/crashlytics/reference/crashlytics#crash

All 4 comments

This is as intended - crash() causes a crash for testing purposes as indicated in the docs:

https://rnfirebase.io/docs/v5.x.x/crashlytics/reference/crashlytics#crash

I'm getting this as well, it doesn't seem to actually be crashing my app, where as on iOS the app actually crashes and reports an error to the firebase console. (None here for android).

Same. I would expect calling this function would show a fatal crash on the firebase dashboard with a stacktrace.

How can we cause a crash due to "react native"? To see if this also works?

crashlytics {
  enableNdk true
}
Was this page helpful?
0 / 5 - 0 ratings