Merge pull request #1069 from meshtastic/notificationsFix

Notifications fix
This commit is contained in:
Garth Vander Houwen 2025-01-27 13:05:26 -08:00 committed by GitHub
commit 11531ed2de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,8 +71,7 @@ class LocalNotificationManager {
content.sound = UNNotificationSound.defaultCritical
}
let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 1, repeats: false)
let request = UNNotificationRequest(identifier: notification.id, content: content, trigger: trigger)
let request = UNNotificationRequest(identifier: notification.id, content: content, trigger: nil)
UNUserNotificationCenter.current().add(request) { error in
if let error {