Please, someone, give me solution how to solve this problem?
I don't know why
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
method is getting called on app crash (crash is created by myself to observe this problem, and I can fix this crash).
I tested it by showing UILocalNotification and NSUserDefaults.
The problem is actually observed on iPhone 6 with iOS 9.3.2,
But with iPhone 5C with iOS 10.0.2 everything is OK (application:didFinishLaunchingWithOptions: method is not getting called on app crash).
The project is written in Objective C.
To observe this problem there should be the real crash, not taking an app into background/inactive state and swiping it up by the user.