spotify / android-sdk

Spotify SDK for Android

Home Page:https://developer.spotify.com/documentation/android/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AuthSDK: CustomTabs flow does not work on older devices

CherryPerry opened this issue · comments

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.

Duplication of #325

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