I'm trying to find out if the user who logs in using Google Sign-In does this the first time. I am using this Package.
I already tried to implement this code snippet from this question, however this solution is for Android and I need it for Xamarin.Droid. The problem is that the OnComplete function returns an Android.Gms.Tasks.Task, but I need IAuthResult to read the AddtionaleInformation.
Currently my code looks like this:
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity, IOnSuccessListener, IOnFailureListener, IOnCompleteListener
private void LoginWithFirebase(GoogleSignInAccount account)
{
var credentials = GoogleAuthProvider.GetCredential(account.IdToken, null);
_firebaseAuth.SignInWithCredential(credentials).AddOnSuccessListener(this).AddOnFailureListener(this).AddOnCompleteListener(this, this);
}
public void OnComplete(Task<IAuthResult> task)
{
}
An my Error is the following
CS0535: 'MainActivity' does not implement interface member 'IOnCompleteListener.OnComplete(Task)'
I know that I didn't implement this function exactly as prescribed, but with the default method I can't retrieve Additional information
Does anyone have a solution or an approach?