[英]Opt out from Firebase Crash Reporting on iOS
I want to give my users the option to opt out from reporting crashes to Firebase. 我想让我的用户选择退出向Firebase报告崩溃。
To do this, I'd like to disabled / enable Firebase Crash Reporting at runtime. 为此,我想在运行时禁用/启用Firebase崩溃报告。 As far as I know there is no official solution for this yet.
据我所知,目前还没有官方的解决方案。
For Android though, this answer provides a workaround. 但是对于Android,此答案提供了一种解决方法。 Now I am looking for a way to do this on iOS.
现在,我正在寻找在iOS上执行此操作的方法。 Any ideas?
有任何想法吗?
Thank you for your help! 谢谢您的帮助!
See 看到
https://firebase.google.com/docs/crash/disable-sdk?authuser=1 https://firebase.google.com/docs/crash/disable-sdk?authuser=1
Crash.sharedInstance().crashCollectionEnabled = false
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.