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

Connection not established with 'Result was not delivered on time'

Open romariomkk opened this issue 4 years ago • 3 comments

@mdelolmo

Issue found on DATE. 10 April 2020

SDK Version:

AppRemote 0.7.0 Auth 1.2.3

OS Version:

Android 9 Motorola one vision (XT1970-3)

Scope(s):

Steps to reproduce:

  1. Receiving code from LoginActivity of Spotify
  2. Connecting to SpotifyAppRemote
  3. After 30 seconds of waiting the SpotifyAppRemoteException arises.

Expected behaviour:

Connection is established successfully.

Actual behaviour:

The SpotifyAppRemote.connect()'s onFailure() is called with the following exception:

Screenshot_20200414-093917__01

What fixes the issue and leads to the successful connection establishing is navigating to Spotify app, starting it and then throwing it off the 'recents' (starting the app only does not help).

I have found out that this response was coming from the AsyncTask called SdkRemoteClientConnector.ConnectionTask when exceeded 30 seconds of waiting for the message to handle after calling RemoteServiceIo's method connect(), intended to start and/or bind Spotify service with action com.spotify.mobile.appprotocol.action.START_APP_PROTOCOL_SERVICE.

romariomkk avatar Apr 14 '20 06:04 romariomkk

Any updates on this?

Xtizainy avatar Jun 15 '20 16:06 Xtizainy

Hi i get the same type of error but when i have no internet connection at all, One of my goals is to use the sdk playerApi when i got no internet too, beacause i have spotify premium and i can play song going offline, so i think it could be reasonable to spect that.

regards

egomezsumma avatar May 28 '21 19:05 egomezsumma

Any updates on this?

moestergaard avatar Oct 15 '23 14:10 moestergaard