Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
romariomkk opened this issue Apr 14, 2020 · 3 comments
Open

Comments

@romariomkk
Copy link

romariomkk commented Apr 14, 2020

@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.

@Xtizainy
Copy link

Any updates on this?

@egomezsumma
Copy link

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

@moestergaard
Copy link

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants