                 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)

    ///   - eventId: Event identifier to mutate best attempt content
    ///   - roomId: Room identifier to fetch display name
    func preprocessPayload(forEventId eventId: String, roomId: String) {
        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()
    private let localAuthenticationService = LocalAuthenticationService(pinCodePreferences: .shared)
    
    override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
        // Set static application settings
