Google plus SSO sign out functionality in android app -
I know how to work for SSO while using Google Plus in Android I have successfully used the same app I'm logging into the app.
Now I need to log out the user so that he can re-enter with a new account with Google Plus. I need to do this in another activity.
I tried to use the disconnect () method but did not get any success. Any help is appreciated on this. The related part is how you can sign out the user:
if (mGoogleApiClient.isConnected ()) {Plus.AccountApi.clearDefaultAccount (mGoogleApiClient); MGoogleApiClient.disconnect (); MGoogleApiClient.connect (); }
Comments
Post a Comment