How to generate ANR report in Firebase Crashlytics Android?

1.3k Views Asked by At

My application is published in other distribution(Not play store), I want to generate ANR logs in Firebase Crashlytics Android.

I am using firebase Bom library and its working in android 11 but not working in lower then 11

 implementation platform('com.google.firebase:firebase-bom:30.3.1')

  implementation 'com.google.firebase:firebase-analytics-ktx'
1

There are 1 best solutions below

0
Gerardo On

The API being by Crashlytics to obtain ANRs is "getHistoricalProcessExitReasons" which is only available on Android 11+ devices.

Check this document for reference.