1

I tried to look at crashlytics but did not find any solution, could there be an intent maybe?

a_local_nobody
  • 7,947
  • 5
  • 29
  • 51
SA DL
  • 73
  • 1
  • Does this help? https://stackoverflow.com/questions/32679624/detect-app-crash-in-android – GhostCat Apr 08 '22 at 12:35
  • i think you want to read logs locally. With crashlytic its not possible i think . [have a look at this anyway](https://stackoverflow.com/questions/69339885/force-firebasecrashlytics-print-logs-to-console/69340289#69340289) . Services works in different ways for instance `Acra` used to open a mail intent with crash report in old days haven't used it from long time . can u add some explaination with question why you want this ? maybe there is some other solution – ADM Apr 08 '22 at 12:38
  • 1
    `FirebaseCrashlytics.getInstance().didCrashOnPreviousExecution()` – ocos Apr 08 '22 at 12:57

1 Answers1

1

It's not too hard as you just want to know if it crashed. Not anything like why is crashed and other things. You can just use this:

if(FirebaseCrashlytics.getInstance().didCrashOnPreviousExecution())){
   // the app crashed the previous time it was opened. 
} else {
   // the app did not crash the previous time it was opened.
} 
Sambhav Khandelwal
  • 3,585
  • 2
  • 7
  • 38