Simplify debug notifications.

pull/1/head
Matthew Chen 7 years ago
parent 1a170ba484
commit 9a4889c4fb

@ -87,8 +87,6 @@ static NSTimeInterval launchStartedAt;
- (void)applicationWillEnterForeground:(UIApplication *)application {
DDLogWarn(@"%@ applicationWillEnterForeground.", self.logTag);
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
}
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application

@ -227,6 +227,10 @@
[OWSStorage resetAllStorage];
[[OWSProfileManager sharedManager] resetProfileStorage];
[Environment.preferences clear];
// Setting the app badge number from non-zero to zero has the
// side effect of clearing all scheduled and presented local
// notifications.
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:1];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
[DebugLogger.sharedLogger wipeLogs];

Loading…
Cancel
Save