     ///   - eventId: Event identifier to mutate best attempt content
     ///   - roomId: Room identifier to fetch display name
     func preprocessPayload(forEventId eventId: String, roomId: String) {
+        if localAuthenticationService.isProtectionSet {
+            NSLog("[NotificationService] preprocessPayload: Do not preprocess because app protection is set")
+            return
+        }
         guard let session = NotificationService.mxSession else { return }
         guard let roomDisplayName = session.store.summary?(ofRoom: roomId)?.displayname else { return }
         let isDirect = session.directUserId(inRoom: roomId) != nil

        return MXPushGatewayRestClient(pushGateway: url.scheme! + "://" + url.host!, andOnUnrecognizedCertificateBlock: nil)
    }()
    private var pushNotificationStore: PushNotificationStore = PushNotificationStore()
    
    override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
        // Set static application settings

                break
            }
            
            if self.localAuthenticationService.isProtectionSet {
                NSLog("[NotificationService] notificationContentForEvent: Resetting title and body because app protection is set")
                notificationBody = NSString.localizedUserNotificationString(forKey: "MESSAGE", arguments: [])
                notificationTitle = nil
            }
            
            guard notificationBody != nil else {
                NSLog("[NotificationService] notificationContentForEvent: notificationBody is nil")
                onComplete(nil)
