Hi! I have some trouble with local notification delivery on Apple Watch. It can take more than 1 minute to see the first local notification delivered. I made sure to not use a trigger so the notification will be delivered right away possible as specified in the UNNotificationRequest initializer doc.
But there is always a delay for notification delivery.
Here is how I'm creating the local notification:
content.title = "title"
content.subtitle = "subtitle"
content.body = "body"
content.userInfo = "userInfo"
content.categoryIdentifier = "categoryIdentifier"
content.threadIdentifier = "threadIdentifier"
content.sound = UNNotificationSound.default
let notifyRequest = UNNotificationRequest(identifier: stringWithUUID(), content: content, trigger: nil)
let center = UNUserNotificationCenter.current()
center.add(notifyRequest) { ( error: Error?) in
if let theError = error {
print(theError.localizedDescription)
} else {
print("Scheduled OK")
}
}
Do you have any idea how to avoid the delay?
Best!