Skip to content

Commit a6a1b9c

Browse files
committed
fix(ios): set "localizedFallbackTitle" to nil
this key is used for "a fallback button when biometric authentication fails". It doesn't make any sense to set this to the "title" provided by the user
1 parent 9ba170e commit a6a1b9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/SimpleBiometrics.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ @implementation SimpleBiometrics
3636
NSString *promptMessage = subtitle;
3737

3838
LAContext *context = [[LAContext alloc] init];
39-
context.localizedFallbackTitle = title;
39+
context.localizedFallbackTitle = nil;
4040

4141
LAPolicy localAuthPolicy = LAPolicyDeviceOwnerAuthenticationWithBiometrics;
4242
if (![[UIDevice currentDevice].systemVersion hasPrefix:@"8."]) {

0 commit comments

Comments
 (0)