Add NSUserDefaults synchronize when about to exit app for update

This commit is contained in:
Lukas Spieß
2016-03-11 13:49:23 +01:00
parent 27be381001
commit bfb9101ca8

View File

@@ -510,8 +510,10 @@ static void uncaught_cxx_exception_handler(const BITCrashUncaughtCXXExceptionInf
}
- (void)leavingAppSafely {
if (self.isAppNotTerminatingCleanlyDetectionEnabled)
if (self.isAppNotTerminatingCleanlyDetectionEnabled) {
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:kBITAppWentIntoBackgroundSafely];
[[NSUserDefaults standardUserDefaults] synchronize];
}
}
- (void)appEnteredForeground {