Logging the failed device token registration (#969)

* logging the failed registration

* Update ElementX/Sources/Services/Notification/Manager/NotificationManager.swift

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>

---------

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
This commit is contained in:
Mauro 2023-05-29 10:58:12 +02:00 committed by GitHub
parent ce6d68614a
commit 909b8eed7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,9 @@ class NotificationManager: NSObject, NotificationManagerProtocol {
}
}
func registrationFailed(with error: Error) { }
func registrationFailed(with error: Error) {
MXLog.error("[NotificationManager] device token registration failed with error: \(error)")
}
func showLocalNotification(with title: String, subtitle: String?) async {
let content = UNMutableNotificationContent()