async void TouchID_Clicked(object sender, System.EventArgs e) { if (LocalDB.TouchIDEnable()) { if (Device.RuntimePlatform == Device.iOS) { var result = await CrossFingerprint.Current.AuthenticateAsync("Prove you have fingers!"); if (result == null) { return; } if (result.Authenticated) { await Navigation.PushAsync(new TabPage()); } else { Vibration.Vibrate(); } } else if (Device.RuntimePlatform == Device.Android) { bool result2 = await DependencyService.Get <IScanFinger>().Scan(); if (result2 == false) { Vibration.Vibrate(); return; } await Navigation.PushAsync(new TabPage()); } } }