|
@@ -279,9 +279,9 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
|
|
}
|
|
}
|
|
|
|
|
|
func userNotificationCenter(_: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
|
|
func userNotificationCenter(_: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
|
|
- //remove foreground notifications after 3 seconds
|
|
|
|
|
|
+ //remove foreground notifications after 4 seconds
|
|
if notification.request.identifier == Constants.notificationIdentifier {
|
|
if notification.request.identifier == Constants.notificationIdentifier {
|
|
- DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
|
|
|
|
|
|
+ DispatchQueue.main.asyncAfter(deadline: .now() + 4) {
|
|
UNUserNotificationCenter.current().removeDeliveredNotifications(withIdentifiers: [notification.request.identifier])
|
|
UNUserNotificationCenter.current().removeDeliveredNotifications(withIdentifiers: [notification.request.identifier])
|
|
}
|
|
}
|
|
}
|
|
}
|