Firebase Android 崩溃报告

Firebase Android Crash Reporting

我正在使用 'Firebase Android Crash Reporting',无法在发生崩溃时创建场景,我们不需要手动发送它。

所以我应该一直'log'或'report'手动操作我认为可能会有异常?

赞 'Fabric' 有效。有机会实现吗?

Firebase 崩溃报告会自动报告所有未捕获的异常。因此,如果您允许异常 "bubble up",它们将自动显示在 Firebase 中。

如果你的代码已经catches/handles/swallows异常,你可以pass those exceptions on to Firebase. An example from the reference documentation:

try {
     // Some code here...
 } catch (Exception e) {
     // Don't know what to do with this...
     FirebaseCrash.log("Caught an unexpected exception while doing some work");
     FirebaseCrash.report(e);
 }

FirebaseCrash.log("SQL database failed to initialize");