Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Who Me Too'd this topic

Connection to android sdk not established with 'Result was not delivered on time'

The 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 behavior:

The connection is established successfully.

Actual behavior:

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

 

error_log_spotify.jpg

 

 

What does fix 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. 

Who Me Too'd this topic