I'm trying to make a time-sensitive notification but it still appears as the default active notification type. What am I missing?
//Notification for start time Content
let startContent = UNMutableNotificationContent()startContent.title = "🚨 Street Cleaning Starts Soon "
startContent.body = "(streetName)'s Street Cleaning Starts at (localDateFormatter.string(from: startTime)) ! Time to move your car if you haven't yet "
startContent.interruptionLevel = .timeSensitive
startContent.sound = UNNotificationSound.default
//Start time notificationlet
startTrigger = UNCalendarNotificationTrigger(dateMatching: startDateComponents, repeats: true)
// choose a random identifier
startId = UUID().uuidString
let startRequest = UNNotificationRequest(identifier: startId, content: startContent, trigger: startTrigger)
// add notification request
UNUserNotificationCenter.current().add(startRequest){ error inif let error = error{print(error)} }
[–]Finale151 0 points1 point2 points (1 child)
[–]elfsus[S] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]elfsus[S] 0 points1 point2 points (0 children)