Thanks a lot finally i can signout of a google account .still there is some minor error(exceptions).
Here is the code for signing out.
[Obsolete]
public async Task<bool> Logout()
{
try
{
FirebaseAuth.Instance.SignOut();
await Android.Gms.Auth.Api.Auth.GoogleSignInApi.SignOut(GoogleLoginActivity.mGoogleApiClient);
return true;
}
catch (Exception ex)
{
await App.Current.MainPage.DisplayAlert("Error", ex.Message, "Ok");
return false;
}
}
signout code without Obselete attribute
public async Task<bool> Logout()
{
try
{
FirebaseAuth.Instance.SignOut();
await MainActivity.mGoogleSignInClient.SignOutAsync();
return true;
}
catch (Exception ex)
{
await App.Current.MainPage.DisplayAlert("Error", ex.Message, "Ok");
return false;
}
}