'if my app crashes, when I reopen the app, how to know the app just crashed?
I tried to look at crashlytics but did not find any solution, could there be an intent maybe?
Solution 1:[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.
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sambhav. K |
