Are there any method , or methods which are called on when the user clicks home button or when the application crashes?
Asked
Active
Viewed 132 times
2 Answers
3
Yes, the UIApplicationDelegate.DidEnterBackground is invoked on your app before it goes to the background:
Nothing is called if your application crashes.

miguel.de.icaza
- 32,654
- 6
- 58
- 76
-
I am not sure but I remember there is a method specially called on crashes. If i find it I will share as a comment here... @miguel.de.icaza, thank you! – Bilgin Kılıç May 08 '12 at 10:22
1
In some cases, like a managed exception, you can set the [AppDomain.UnhandledException][1]
event to be notified - but there's not a lot you can do at this stage.
However that does not cover crashes that will occurs in native code. There are products that can log and report such crashes but they won't let you execute your own code (and can't for many crashes like out of memory conditions).