protected async override void OnAppearing() { base.OnAppearing(); // Biometric prompt // TODO - Make sure username/password is saved first if (biometrics.HasBiometrics() && (biometrics.HasFacial() || biometrics.HasFingerprint())) { LoginUserUsingBio(); } else { await DisplayAlert("No Bueno", $"Sorry, no bio", "OK"); } }
protected async void btnLogin_Clicked(object sender, EventArgs e) { // TODO - Make sure username/password is saved first if (biometrics.HasBiometrics() && (biometrics.HasFacial() || biometrics.HasFingerprint())) { if (DeviceInfo.Platform == DevicePlatform.Android) { await PopupNavigation.Instance.PushAsync(new FingerprintPopup(), true); } else { await LoginUserUsingBio(); } } else { await DisplayAlert("No Bueno", $"Sorry, no bio", "OK"); } }