As you explained, you need to install an intimate server, you can contact your server immediately before the application terminates due to a failure.
in this case you should set an exception handler , as soon as an exception occurs, you will receive a notification
See how you can do it.
write this line of NSSetUncaughtExceptionHandler (&uncaughtExceptionHandler) code in applicationDidFixnishLaunchin Appdelegate Method Class
-(BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions: (NSDictionary*)launchOptions { NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler); EDIT: if( [[NSUserDefaults standardUserDefaults] boolForKey:@"isExceptionOccured"]) {
source share