Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[local_auth]Fix lock out alert message iOS #2760

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ Giancarlo Rocha <giancarloiff@gmail.com>
Ryo Miyake <ryo@miyake.id>
Théo Champion <contact.theochampion@gmail.com>
Kazuki Yamaguchi <y.kazuki0614n@gmail.com>
Eitan Schwartz <eshvartz@gmail.com>
Eitan Schwartz <eshvartz@gmail.com>
Simão Garcia <simaogarcia@gmail.com>
4 changes: 4 additions & 0 deletions packages/local_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.6.3

* Fix app crash when trying to display lockOut alertMessage on iOS

## 0.6.2+2

* Update lower bound of dart dependency to 2.1.0.
Expand Down
11 changes: 6 additions & 5 deletions packages/local_auth/ios/Classes/FLTLocalAuthPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,12 @@ - (void)handleErrors:(NSError *)authError
errorCode = authError.code == LAErrorPasscodeNotSet ? @"PasscodeNotSet" : @"NotEnrolled";
break;
case LAErrorTouchIDLockout:
[self alertMessage:arguments[@"lockOut"]
firstButton:arguments[@"okButton"]
flutterResult:result
additionalButton:nil];
return;
dispatch_async(dispatch_get_main_queue(), ^{
[self alertMessage:arguments[@"lockOut"]
firstButton:arguments[@"okButton"]
flutterResult:result
additionalButton:nil];
});
}
result([FlutterError errorWithCode:errorCode
message:authError.localizedDescription
Expand Down
2 changes: 1 addition & 1 deletion packages/local_auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: local_auth
description: Flutter plugin for Android and iOS device authentication sensors
such as Fingerprint Reader and Touch ID.
homepage: https://github.com/flutter/plugins/tree/master/packages/local_auth
version: 0.6.2+2
version: 0.6.3

flutter:
plugin:
Expand Down