Firebase crashlytics is integrated into my application and working fine. I am experiencing crashes while the app is in the background and I wanted to disable these crash reporting but other crashes must be reported.
Asked
Active
Viewed 459 times
1 Answers
1
Follow the instructions from:
enabling/disabling Crashlytics at runtime in iOS app
Add this key value to your info.plist:
Key: FirebaseCrashlyticsCollectionEnabled
Value: false
You can then manually enable or disable crash reporting by using this method:
Crashlytics.crashlytics().setCrashlyticsCollectionEnabled(true)
So now you can enable Crashlytics when the app is launched, disable it when applicationDidEnterBackground is triggered and re-enable it when applicationWillEnterForeground is trigerred.

Arik Segal
- 2,963
- 2
- 17
- 29
-
Did you implement likewise? Is it hampering crash reporting? – Raj Aggrawal Nov 03 '21 at 11:05
-
No I didn't. My answer is theoretical. – Arik Segal Nov 03 '21 at 12:37