I'd like to enable and disable Crash Reporting in my current iOS app programmatically. I'm using
The official Firebase documentation at https://firebase.google.com/docs/crash/disable-sdk?hl=en tells me to use the following code:
Crash.sharedInstance().crashCollectionEnabled = false
But this doesn't work / seems to be outdated as
crashCollectionEnabled
propertyI know I could write a custom exception handler and forward received exceptions on demand to Crashlytics, but I don't want to implement such a dirty solution.
Does anybody know a clean way of enabling / disabling Crashlytics in a running iOS app?
for Fabric/Crashlytics: don't call this:
Fabric.with([Crashlytics.self])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.