diff --git a/Monal/Classes/MonalAppDelegate.m b/Monal/Classes/MonalAppDelegate.m index b03535e55..61cb68110 100644 --- a/Monal/Classes/MonalAppDelegate.m +++ b/Monal/Classes/MonalAppDelegate.m @@ -355,7 +355,7 @@ -(void) updateUnread if(unreadMsgCnt != nil) unread = [unreadMsgCnt integerValue]; DDLogInfo(@"Updating unread badge to: %ld", (long)unread); - [UIApplication sharedApplication].applicationIconBadgeNumber = unread; + [[UNUserNotificationCenter currentNotificationCenter] setBadgeCount:unread withCompletionHandler:nil]; }]; }