android-sdk icon indicating copy to clipboard operation
android-sdk copied to clipboard

AuthSDK: CustomTabs flow does not work on older devices

Open CherryPerry opened this issue 3 years ago • 2 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.

CherryPerry avatar Jul 04 '22 16:07 CherryPerry

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

CherryPerry avatar Jul 05 '22 09:07 CherryPerry

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

harun7arrashid avatar Nov 07 '22 04:11 harun7arrashid