TF-2384 Handle refresh token when token expired in NSE
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit c8a39bb42792770c001ac90d6301d53126225d95)
This commit is contained in:
@@ -84,8 +84,13 @@ import flutter_local_notifications
|
||||
TwakeLogger.shared.log(message: "AppDelegate::userNotificationCenter::willPresent:newBadgeCount: \(newBadgeCount)")
|
||||
updateAppBadger(currentBadgeCount: newBadgeCount)
|
||||
}
|
||||
|
||||
completionHandler(isAppForegroundActive() ? [] : [.alert, .badge, .sound])
|
||||
if let emailId = notification.request.content.userInfo[JmapConstants.EMAIL_ID] as? String,
|
||||
!emailId.isEmpty,
|
||||
!isAppForegroundActive() {
|
||||
completionHandler([.alert, .badge, .sound])
|
||||
} else {
|
||||
completionHandler([])
|
||||
}
|
||||
}
|
||||
|
||||
override func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
|
||||
|
||||
Reference in New Issue
Block a user