android-sdk
android-sdk copied to clipboard
Connection not established with 'Result was not delivered on time'
@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:
- Receiving code from LoginActivity of Spotify
- Connecting to SpotifyAppRemote
- 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:
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
.
Any updates on this?
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
Any updates on this?