今回はFirebaseCrashlitycsを使ったクラッシュの集計方法を紹介していきます
仕込む場所はrunCatchingやtry catchの中で大丈夫です 下記のようにThrowableを引数として渡すことでエラーの内容を集計してくれます
runCatching
try catch
runCatching { // hoge }.onFailer { Firebase.crashlytics.recordException(it) }
今回はFirebaseCrashlitycsを使ったクラッシュの集計方法を紹介しました どなたかのお役に立てれば幸いです
Register as a new user and use Qiita more conveniently