         //  launch an initial background sync
         userAccount.initialBackgroundSync(20000, success: { [weak self] in
             guard let self = self else {
-                NSLog("[NotificationService] Fallback case 12")
+                NSLog("[NotificationService] launchBackgroundSync: MXKAccount.initialBackgroundSync returned too late successfully")
                 return
             }
             self.fetchEvent()
         }) { [weak self] (error) in
             guard let self = self else {
-                NSLog("[NotificationService] Fallback case 11")
-                return
-            }
-            NSLog("[NotificationService] Fallback case 6")
+                NSLog("[NotificationService] launchBackgroundSync: MXKAccount.initialBackgroundSync returned too late with error: \(String(describing: error))")
+                return
+            }
+            NSLog("[NotificationService] launchBackgroundSync: MXKAccount.initialBackgroundSync returned with error: \(String(describing: error))")
             self.fallbackToOriginalContent()
         }
     }

        
        guard let roomId = userInfo["room_id"] as? String, let eventId = userInfo["event_id"] as? String else {
            //  it's not a Matrix notification, do not change the content
            NSLog("[NotificationService] Fallback case 1")
            contentHandler?(content)
            return
        }
        
        userAccount.mxSession.event(withEventId: eventId, inRoom: roomId, success: { [weak self] (event) in
            guard let self = self else {
                NSLog("[NotificationService] Fallback case 9")
                return
            }
            

            }
        }) { [weak self] (error) in
            guard let self = self else {
                NSLog("[NotificationService] fetchEvent: MXSession.event method returned too late with error: \(String(describing: error))");
                return
            }
            NSLog("[NotificationService] fetchEvent: MXSession.event method returned error: \(String(describing: error))");
            self.fallbackToOriginalContent()
        }
    }
