Skip to content

Commit

Permalink
fix: adding critical alert permission req CU-8688ucrbp (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucswift authored Jun 21, 2024
1 parent b86f0e9 commit ca2c3c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit ca2c3c7

Please sign in to comment.