Posts

Post marked as solved
5 Replies
7.6k Views
Hello, we have updated our app to include the time sensitive notification entitlement and changed the payload sent to the APNS to include the "interruption-level": "time-sensitive" key. However no notification is able to bypass the Schedule or Focus modes. We've been able to check and the payload is received properly by the app. Is there any known issue? "aps": { "sound": "default", "alert": { "title": "Awesome title" "body": "New Time Sensitive notification received", "action-loc-key": "Details" }, "interruption-level": "time-sensitive", "badge": 6 } Also using the code suggested during the WWDC session doesn't work. let content = UNMutableNotificationContent()         content.title = "Urgent"         content.body = "A time sensitive notification"         if #available(iOS 15.0, *) {             content.interruptionLevel = .timeSensitive         } else {             // Fallback on earlier versions         }         let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 10, repeats: false)         let request = UNNotificationRequest(identifier: "time-sensitive-example", content: content, trigger: trigger)         notificationCenter.add(request) { Error in                      }
Posted
by MacTeo.
Last updated
.