Closed dantn93 closed 6 years ago
Hello, the purpose of the function crash that you are calling is literally to ... crash() so that you get a real report on crashlytics.. 🚀 . The report will probably take some time to appear
@Titozzz When I test on ios simulator. It appears immediately. Do you know how long it will appear? I mean sometimes ... 1 hours or two or more than
@Titozzz Please reopen this topic. I think this service having problems. I have waited for more than 12 hours, but I don't receive any report in console firebase. Can you give me a "crashlytics service" demo? Thanks
I have this issues. I think we should update this library.
I'm only testing on Android and it didn't work when running via dev on emulator or device. I waited over 12 hours and nothing.
It did work, however, when building a released version. That said, I've noticed that crashes don't show up consistently or instantly. I dunno, will continue testing but it looks like it works at least.
use following dependencies for android: Paste it into build.gradle:app
implementation('com.crashlytics.sdk.android:crashlytics:2.9.6@aar') { transitive = true }
upgrade it from 2.9.5 to 2.9.6
it works for me. Thanks
No, don't use those. They are out of date. 2.10.1 is current https://firebase.google.com/support/release-notes/android
Dear mr @mikehardy I've tried test crash in debug mode. But it still not showing any issues in Firebase Console but only Crash-free statistics changed. Can you help me about that?
@thanhluantl2304 there are a lot of docs you need to read I think, especially the ones upstream on the google firebase site. Crashes won't report by default in debug mode. And you may not have uploaded de-obfuscation files. You have to relaunch the app to send the crash, etc etc.
Thanks Mr @mikehardy i ran it as released app then it worked. But I want to ask you 1 more question. The report shown not clear issue's info. I want something like react native file name, error line number in react native file but report shown only info about native code (index.bundle). Can you explain about that? If could not, can you introduce me another library to get linenumber, filename when catch exception? Thank you very much!
@thanhluantl2304 so you need to maintain sourcemaps from your build process. Crashlytics has no map that goes back from the minimized/bundled javascript to the separate javascript files, back to maybe the typescript or whatever right? So if you need the original line numbers you must maintain sourcemaps and trace back. I'm unaware of off the shelf scripts that do that but they probably exist.
Ok, I'm going to try sentry for that purpose! Thanks you very much for the help!
Issue
I integrate the crashlytics and test (firebase.crashlytics().crash()) on android emulator, but it raises this bug "length=2; index=10"
I found this post https://code.luasoftware.com/tutorials/android/setup-firebase-crashlytics-on-android-for-crash-reporting/#enable-crashlytics-in-firebase-console
It show that correctly, then I open console firebase but I don't see any crashes.
This is my craslytics page
How can I fix it?
Project Files
android/build.gradle
contents.android/app/build.gradle
contents.Environment
React Native
version: React Native 0.55.4React Native Firebase
library version: "react-native-firebase": "5.0.0"Firebase
module(s) you're using that has the issue: