From ec67591cf2cf39e5c3a766bee71a93f15397955f Mon Sep 17 00:00:00 2001 From: Sardorbek Ruzmatov Date: Tue, 23 Mar 2021 09:53:59 +0100 Subject: [PATCH] Add UNAuthorizationStatus.ephemeral ios14 case --- Classes/Systems/BadgeNotifications.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Systems/BadgeNotifications.swift b/Classes/Systems/BadgeNotifications.swift index 64887a112..7ec85253e 100644 --- a/Classes/Systems/BadgeNotifications.swift +++ b/Classes/Systems/BadgeNotifications.swift @@ -46,7 +46,7 @@ final class BadgeNotifications { switch settings.authorizationStatus { case .denied: callback(.error(nil)) - case .authorized, .provisional, .notDetermined: + case .authorized, .provisional, .notDetermined, .ephemeral: callback(.success((isBadgeEnabled, isLocalNotificationEnabled))) } }