I want to do something on app start if the app is closed unexpectedly last time.(crash, force close), how can I tell it?
Ill post this just for future reference:
For extra coverage check activity states with
then use nsuserdefaults to keep track of the status
the main difference between background checking is that these cover the edge case when the user immediately closes the app via app switcher when the app is still executing in the foreground. Also this helps for background compatible apps i think
I think it might give you more coverage between a crash and a force close with these... although i haven't tested running out of battery