How to logout from google plus account in google plus integration in android -
I have worked but it is not working after logout, login it again in the app
< Pre> private zero signOutFromGplus () {if (mGoogleApiClient.isConnected ()) {// clearCookies (); Plus.AccountApi .clearDefaultAccount (mGoogleApiClient); .mGoogleApiClient.disconnect (); .mGoogleApiClient.connect (); }}
This may be the old question, but I want to clear that here Probably the most freshers who made a Google login for the first time. They may face a problem with the Google Account auto-login after calling the following method.
Private Zero SignOutframe (if (mGoogleApiClient Isconnected ()) {// clearCookies (); Plus.AccountApi .clearDefaultAccount (mGoogleApiClient); .mGoogleApiClient.disconnect (); .mGoogleApiClient.connect ();}
}
Solution: Make sure your mGoogleApiClient has not already disconnected anything, so why the reason is not entering the loop
Hope this will help someone.
Comments
Post a Comment