spotify / android-sdk

Spotify SDK for Android
https://developer.spotify.com/documentation/android/
Apache License 2.0
474 stars 120 forks source link

Spotify app gets stuck on the authorization screen when authorized via the Spotify app remote SDK #353

Open Kvartnyk opened 10 months ago

Kvartnyk commented 10 months ago

Issue found on 19/Dec/23.

SDK Version: 0.7.2

OS Version: Android 13

Scope(s): app

Steps to reproduce:

"target app" - the Android app with Spotify integration via Spotify app remote SDK.

  1. Launch the Spotify app (log out if already authorized).
  2. The Spotify authorization screen opens.
  3. Move the Spotify app to the background and open the "target app".
  4. Authorize Spotify from the "target app" using AuthorizationClient.createLoginActivityIntent(activity, request).
  5. The Spotify app opens.
  6. Proceed with "Continue with Google".
  7. After successful authorization, the "target app" is brought to the foreground.
  8. Open the Spotify app from the "target app" using getLaunchIntentForPackage("com.spotify.music").

Expected behaviour:

The user is authorized in the Spotify app, and the main screen of Spotify app is opened.

Actual behaviour:

The authorization screen of Spotify app remains open.

Additional information: