From 909b8eed7e8779d2531dd623db08f2ec51958edb Mon Sep 17 00:00:00 2001 From: Mauro <34335419+Velin92@users.noreply.github.com> Date: Mon, 29 May 2023 10:58:12 +0200 Subject: [PATCH] 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> --- .../Services/Notification/Manager/NotificationManager.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ElementX/Sources/Services/Notification/Manager/NotificationManager.swift b/ElementX/Sources/Services/Notification/Manager/NotificationManager.swift index d6a6b7414..e2971b5c7 100644 --- a/ElementX/Sources/Services/Notification/Manager/NotificationManager.swift +++ b/ElementX/Sources/Services/Notification/Manager/NotificationManager.swift @@ -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()