Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Firebase Crash Reporting when the app is running on debug?

I have successfully implemented Firebase Crash Reporting, but I need to disable the service when the app is running undo the 'debug' Build Variant, in order to avoid non-real crashes in the console during the development.

The official documentation doesn't say anything about this.

like image 291
facundomr Avatar asked May 23 '16 17:05

facundomr


People also ask

How do I stop Firebase from crashing?

To mark a cluster as closed, click the three dots on the far right of the row that appear when hovering over the row, then click "close cluster."

How do I disable Firebase Crashlytics in debug mode?

Within your logs, search for a log message from Crashlytics that contains the following string, which verifies that your app is sending crashes to Firebase. After confirming that your app is sending crashes, you can optionally disable debug logging by removing the -FIRDebugEnabled from the arguments passed on launch.

How do I remove Firebase Analytics?

If you need to deactivate Analytics collection permanently in a version of your app, set FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED to YES (Boolean) in your app's Info.


1 Answers

UPDATED: With Google Play Services / Firebase 11+ you could now disable crash reporting at runtime. FirebaseCrash.setCrashCollectionEnabled() (Thanks @Tyler Carberry)

OLD ANSWER:

There is no official support for this, as far as the community has been able to surmise. The best way I would suggest to do this is, set up multiple Firebase apps in your dashboard, one for each build type, and set up multiple google_services.json files directing to each different app depending on the build variant.

like image 145
WoogieNoogie Avatar answered Oct 11 '22 14:10

WoogieNoogie