Search code examples
iosswiftfirebasefirebase-crash-reporting

Opt out from Firebase Crash Reporting on iOS


I want to give my users the option to opt out from reporting crashes to Firebase.

To do this, I'd like to disabled / enable Firebase Crash Reporting at runtime. As far as I know there is no official solution for this yet.

For Android though, this answer provides a workaround. Now I am looking for a way to do this on iOS. Any ideas?

Thank you for your help!


Solution

  • See

    https://firebase.google.com/docs/crash/disable-sdk?authuser=1

    Crash.sharedInstance().crashCollectionEnabled = false