Android Crashlytics非致命日志

huangapple go评论80阅读模式
英文:

Android crashlytics non fatal logs

问题

我已在我的应用程序中集成了Firebase Crashlytics。我能够在仪表板上看到已经捕获或引发异常但用户没有经历崩溃(即应用程序关闭)的崩溃。
这是否是预期行为?
是否有一种方法可以禁用它?

英文:

I have integrated firebase crashlytics in my app. I am able to see crashes in the dashboard that have been caught or thrown an exception but the user has not experienced the crash(where the app closes).
Is this expected behavior?
Is there a way I can disable it?

答案1

得分: 1

Firebase Crashlytics会捕获发生在您的应用中的所有崩溃和错误,无论它们是否导致应用关闭。这使您能够识别并修复可能影响您的用户的问题,即使他们对此不知情。

如果您想禁用捕获非致命错误和异常,可以通过调用FirebaseCrashlytics实例中的setCrashlyticsCollectionEnabled方法来实现。以下是一个示例:

FirebaseCrashlytics crashlytics = FirebaseCrashlytics.getInstance();
crashlytics.setCrashlyticsCollectionEnabled(false);

通过将crashlyticsCollectionEnabled标志设置为false,您将禁用非致命错误和异常的收集。

然而,重要的是要注意,禁用非致命错误和异常的收集可能会使您更难以识别和修复应用中的问题。通常建议保持此功能启用,以便您可以获得影响您的用户的问题的完整图像。

英文:

Firebase Crashlytics captures all crashes and errors that occur in your app, regardless of whether they result in the app closing or not. This allows you to identify and fix issues that may be impacting your users, even if they are not aware of them.

If you want to disable capturing non-fatal errors and exceptions, you can do so by calling the setCrashlyticsCollectionEnabled method in the FirebaseCrashlytics instance.
Here's an example:

FirebaseCrashlytics crashlytics = FirebaseCrashlytics.getInstance();
crashlytics.setCrashlyticsCollectionEnabled(false);

By setting the crashlyticsCollectionEnabled flag to false, you will disable the collection of non-fatal errors and exceptions.

However, it's important to note that disabling the collection of non-fatal errors and exceptions may make it more difficult to identify and fix issues in your app. It's generally recommended to keep this feature enabled so you can get a complete picture of the issues that are affecting your users.

huangapple
  • 本文由 发表于 2023年6月19日 07:58:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/76502939.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定