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.
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."
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With