When developing a React Native App recognizing real-time crash situation eventualities is a tiresome job. To beat this, I made a decision to combine Firebase Crashlytics into the mission.
Firebase Crashlytics is a light-weight, real-time crash reporter utilized by builders around the globe. It allows monitoring, prioritizing, and resolving App stability points effectively. Furthermore, Crashlytics helps to avoid wasting time troubleshooting by intelligently categorizing crashes and emphasizing the occasions that led to them.
On prime of that, it gives Crash Insights, that are helpful hints that determine frequent stability points and supply instruments to assist examine and handle them.
After the profitable integration of Crashlytics, getting the log of the error which is inflicting crashes in real-time can be easy. It permits capturing App’s errors as app_exception occasions in Analytics. Plus, it furnishes real-time alerts for brand spanking new points, regressed points, and rising points. Nevertheless, I confronted problem in integrating Crashlytics with the mission.
After in depth analysis, I got here up with a possible resolution which I’ve defined by a number of steps. These steps are divided into Android and iOS individually which can enormously make it easier to while you’re constructing cross-platform Apps.
First, arrange the Firebase Crashlytics crash reporting software,npm i @react-native-firebase/app
npm i @react-native-firebase/crashlytics
Now register your App with firebase by the next process,
- Open the Firebase console within the browser.
- Add your mission by coming into your mission title and following all different steps within the Firebase console, then click on Create mission.
Android
- After creating the mission within the firebase console, click on on add app and choose android.
- Obtain google-services.json
- Transfer the google-services.json file to the mission/android/app folder
- Open “mission/android/construct.gradle” file and add under classpaths in dependencies
- Be sure to have added “google()” in construct script repositories and all mission repositories.
- add following in android/app/construct.gradle
- Give “react-native run-android” command in mission terminal
iOS
- cd ios && pod set up from mission listing
- After creating the mission within the firebase console, click on on add app and choose iOS.
- Comply with the steps in firebase console
- Obtain and transfer GoogleService-Information.plist to mission/ios
- Add the next in AppDelegate.h
- Add the next code inside the didFinishLaunchingWithOptions() of AppDelegate.m
- Give the “react-native run-ios” command within the mission terminal.
Applied sciences or frameworks or instruments – React Native
Platforms (Internet, Cellular, And so forth.) – Cellular
Delicate Suave is a number one software development company the place you could find and hire React Native developers with a minimal of 5 years of expertise. Our builders have glorious coding/programming abilities, communication, organizational, and time administration abilities. We observe a budget-friendly pricing construction to cater to the wants of startups and SMBs.