Skip to content

Spotify login with Google strange behaviour if no Google accounts are setup #360

Open

Description

@vitaliecroitor

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.

  1. Integrate the Spotify Android SDK
  2. Start the login activity with startActivityForResult using the AuthorizationClient.createLoginActivityIntent(activity, AuthorizationRequest.Builder().build()) intent.
  3. 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

Activity

  1. akwasiio commented on Apr 29, 2024

    @akwasiio

    Works with auth sdk version 1.2.6

  2. vitalie-hellocarl commented on Apr 29, 2024

    @vitalie-hellocarl

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions