I saw a couple applications that detect whether an app crashed the last time it was used to encourage the user to report the bug.
How can I do that? I tried this solution, but didn't get it to work in my swift project...
An approach I thought of is to save something each time the app is about to be closed and then read the value when launching the app, I guess when the app crashes then it won't be able to save anything anymore, right?
But, this is not very elegant. Is there a better way for detecting a crash?
Thanks in advance :)