Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After sign in the 1st time, it won't allow you to change a different google account to sign in #67

Open
lo7100 opened this issue Oct 1, 2020 · 2 comments

Comments

@lo7100
Copy link

lo7100 commented Oct 1, 2020

Describe the bug
When you use the google sign in with one google account, you won't allow you to use a different google account to sign in next time. Usually, when the google login pop up, it let you to choose different accounts. However, this will sign you in the next time without an option for you to change a different account.

To Reproduce
Steps to reproduce the behavior:

  1. Click on the google login button to trigger "await _googleService.LoginAsync();"
  2. Sign in with a google account Not able to resolve GoogleClientManager.Initialize(this) in Android and GoogleClientManager.Initialize(); in iOS #1.
  3. Close the app and reopen the app
  4. Click on google login button again.
  5. It should ask you which google account you want to sign in.
  6. From 4, it will automatically sign in with the Not able to resolve GoogleClientManager.Initialize(this) in Android and GoogleClientManager.Initialize(); in iOS #1 account you used to sign in

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@Axemasta
Copy link
Contributor

This is not a bug, this is working as intended. You would need to call the logout method before it prompts you for your credentials. The logout method is documented here.

CrossGoogleClient.Current.Logout();

If you wanted to force your app to logout everytime the user closed the app, you could call this method in the OnSleep() method in your App.xaml.cs, however I would ask you to consider why you would want your users to be prompted to login every-time they open the app.

@xamarin7100
Copy link

Got it! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants