From b2a05af07727edbd13a18a2abfe87ce7eceee99c Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sat, 14 Oct 2023 06:23:24 -0300 Subject: [PATCH] also check empty info.plist entry --- plugins/biometric/ios/Sources/BiometricPlugin.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/biometric/ios/Sources/BiometricPlugin.swift b/plugins/biometric/ios/Sources/BiometricPlugin.swift index 602da7f2..7e7aae98 100644 --- a/plugins/biometric/ios/Sources/BiometricPlugin.swift +++ b/plugins/biometric/ios/Sources/BiometricPlugin.swift @@ -51,7 +51,7 @@ class BiometricPlugin: Plugin { if available && context.biometryType == .faceID { let entry = Bundle.main.infoDictionary?["NSFaceIDUsageDescription"] as? String - if entry == nil { + if entry == nil || entry?.count == 0 { available = false reason = "NSFaceIDUsageDescription is not in the app Info.plist" errorCode = authenticationErrorCodeMap[LAError.biometryNotAvailable.rawValue] ?? ""