From ca2c3c70c8ee4906ca301565e3cdbaef31492e03 Mon Sep 17 00:00:00 2001 From: Shawn Jackson Date: Thu, 20 Jun 2024 21:58:48 -0700 Subject: [PATCH] fix: adding critical alert permission req CU-8688ucrbp (#4) --- .../LocalNotificationsPlugin/LocalNotificationsHandler.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Sources/LocalNotificationsPlugin/LocalNotificationsHandler.swift b/ios/Sources/LocalNotificationsPlugin/LocalNotificationsHandler.swift index e0bf257..705cd56 100644 --- a/ios/Sources/LocalNotificationsPlugin/LocalNotificationsHandler.swift +++ b/ios/Sources/LocalNotificationsPlugin/LocalNotificationsHandler.swift @@ -11,7 +11,7 @@ public class LocalNotificationsHandler: NSObject, NotificationHandlerProtocol { public func requestPermissions(with completion: ((Bool, Error?) -> Void)? = nil) { let center = UNUserNotificationCenter.current() - center.requestAuthorization(options: [.badge, .alert, .sound]) { (granted, error) in + center.requestAuthorization(options: [.badge, .alert, .sound, .criticalAlert]) { (granted, error) in completion?(granted, error) } }