diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 967d5d14..c346273b 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -24,6 +24,8 @@
????
CFBundleVersion
$(FLUTTER_BUILD_NUMBER)
+ NSFaceIDUsageDescription
+ Allow permission to use face id for quick and secure logins in the future"
LSApplicationQueriesSchemes
mailto
diff --git a/lib/new_views/pages/settings_page.dart b/lib/new_views/pages/settings_page.dart
index f23b99da..0e8a5f53 100644
--- a/lib/new_views/pages/settings_page.dart
+++ b/lib/new_views/pages/settings_page.dart
@@ -10,7 +10,8 @@ import 'package:test_sa/extensions/int_extensions.dart';
import 'package:test_sa/extensions/text_extensions.dart';
import 'package:test_sa/extensions/widget_extensions.dart';
import 'package:test_sa/new_views/app_style/app_color.dart';
-
+import 'package:local_auth_android/local_auth_android.dart';
+import 'package:local_auth_ios/local_auth_ios.dart';
import '../common_widgets/default_app_bar.dart';
class SettingsPage extends StatefulWidget {
@@ -44,8 +45,15 @@ class _SettingsPageState extends State {
void checkForLocalAuth(bool buttonState) async {
bool authStatus = await _settingProvider.auth.authenticate(
- localizedReason: Platform.isAndroid ? "Scan your fingerprint to authenticate" : "",
- options: AuthenticationOptions(biometricOnly: Platform.isAndroid),
+ localizedReason: Platform.isAndroid ? "Scan your fingerprint to authenticate" : "Scan with face id to authenticate",
+ options: AuthenticationOptions(biometricOnly: Platform.isAndroid),
+ authMessages: [
+ IOSAuthMessages(
+ cancelButton: 'cancel',
+ goToSettingsButton: 'settings',
+ goToSettingsDescription: 'Please enable Touch ID.',
+ lockOut: 'Please reenable your Touch ID')
+ ]
);
if (authStatus) {
localAuth = !localAuth;
diff --git a/lib/new_views/pages/splash_page.dart b/lib/new_views/pages/splash_page.dart
index 818a3e5f..25c20858 100644
--- a/lib/new_views/pages/splash_page.dart
+++ b/lib/new_views/pages/splash_page.dart
@@ -73,7 +73,7 @@ class _SplashPageState extends State {
Future checkDualAuthentication() async {
return await _settingProvider.auth.authenticate(
- localizedReason: Platform.isAndroid ? "Scan your fingerprint to authenticate" : "",
+ localizedReason: Platform.isAndroid ? "Scan your fingerprint to authenticate" : "Scan with face id to authenticate",
options: AuthenticationOptions(biometricOnly: Platform.isAndroid),
);
}