-
Couldn't load subscription status.
- Fork 2.3k
Description
I have integrated react-native-firebase and using crashlytics module to generate crash logs. It works fine, but I want to generate crash logs only on development mode just for testing. After testing I will generate crash logs only only production.
According to your manual guideline instruction, I have added code inside AndroidManifest.xml, and in info.plist file
iOS::
Turn off automatic collection with a new key to your Info.plist file:
Key: firebase_crashlytics_collection_enabled
Value: false
Android
Turn off automatic collection with a meta-data tag in AndroidManifest.xml file:
<meta-data
android:name="firebase_crashlytics_collection_enabled"
android:value="false" />
Enable collection at runtime
I have initialised crashlytics inside my app.js file, like this
if (__DEV__) {
firebase.crashlytics().enableCrashlyticsCollection();
}
It returns me an error::
TypeError: _reactNativeFirebase.default.crashlytics(...).enableCrashlyticsCollection is not a function.
I am using React native version:: 0.58
React native firebase version :: 5.2.2
What should I do to resolve this issue, please suggest.