You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spotify login with Google strange behaviour if no Google accounts are setup #360
UseCase
When integrating the Spotify Android Sdk, we open the LoginActivity to obtain the Authentication Token in order to connect to the sdk.
Issue:
After opening the LoginActivity, if there are no Google Accounts setup on the phone, clicking on the "Continue with Google" does nothing except showing a toast: "There are no accounts to select"
Issue found on 20.03.2024.
SDK Version:
0.8.0
OS Version:
Android 10, 11, 12, 13
Scope(s):
LoginActivity , AuthorizationRequest
Steps to reproduce:
Preconditions: There are no Google accounts setup on the phone. When opening the phoneSettings -> Accounts there are no Google accounts setup.
Integrate the Spotify Android SDK
Start the login activity with startActivityForResult using the AuthorizationClient.createLoginActivityIntent(activity, AuthorizationRequest.Builder().build()) intent.
Click on the "Continue with Goolge" button
Expected behaviour:
The application will open a popup to give you a way to add a google account to your device
Actual behaviour:
The application shows a toast with "There are no accounts to select" and nothing happens
@akwasiio - as stated on the https://github.com/spotify/android-auth README, the android-auth repository is actually part of this repository now, so this should be working here as well, but it doesn't.
Activity
akwasiio commentedon Apr 29, 2024
Works with auth sdk version 1.2.6
vitalie-hellocarl commentedon Apr 29, 2024
@akwasiio - as stated on the https://github.com/spotify/android-auth README, the android-auth repository is actually part of this repository now, so this should be working here as well, but it doesn't.