spotify / android-sdk

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

AuthSDK: CustomTabs flow does not work on older devices #327

Open CherryPerry opened 1 year ago

CherryPerry commented 1 year ago

Issue found on 2020-07-04.

SDK Version:

2.0.2

OS Version:

Android Emulators API 23, 24, 25, 26 with Bromite Chromium v102 (It is easier to install it instead of Chrome, but it is actually degoogled Chrome).

Android 6, Xiaomi Mi 3W with Chrome installed

Scope(s):

CustomTabs login

Steps to reproduce:

  1. Have a device with Custom Tabs browser (default browser on non-Google-Play emulators does not support it).
  2. Checkout sample app https://github.com/CherryPerry/SpotifyAuthSDKBug
  3. Fill in all missing info like manifest placeholders, api key and etc.
  4. Start auth flow using the button.
  5. Login with account.
  6. See "TOKEN" result.
  7. Start auth flow again.
  8. A browser will automatically log in and close itself.

Expected behaviour:

"TOKEN" result.

Actual behaviour:

"EMPTY" result.

Devices with API 27+ are not affected.

CherryPerry commented 1 year ago

Duplication of https://github.com/spotify/android-sdk/issues/325

harun7arrashid commented 1 year ago

how is it going with this case ? I have the same issue. Thankyou.