Connect SpotifyAppRemote when offline

Connect SpotifyAppRemote when offline

silvan_

Plan

Premium

Country

Switzerland

Device

(HTC U11, Samsung Galaxy S10e)

Operating System

(Android 9 / 12)

Versions

SpotifyAppRemote: 0.7.2

Spotify: 8.7.28.1217

 

My Question or Issue

Hi,

I wonder if it is possible to establish the connection with SpotifyAppRemote to Spotify when the device is offline. If I try so, there is a timeout after 60s with the message "Could not authenticate within 60 s. It is possible that there's an issue with Spotify auth services or the connection is unstable".

 

I found contradictive statements.

offline-mobile-sdk/  -> here it sounds like it should be possible

app-remote-lib/ -> and here it doesn't

 

So I would be very glad if someone could fill me in on this.

Thanks in advance

Silvan

 

My stacktrace:

 

 

 

2022-05-10 09:28:11.313 11223-11528/com.ruwido.reach D/SPOTIFY_APP_REMOTE: Start remote client
2022-05-10 09:28:11.337 11223-11528/com.ruwido.reach D/SPOTIFY_APP_REMOTE: Connecting to Spotify service
2022-05-10 09:28:11.459 11223-11223/com.ruwido.reach D/SPOTIFY_APP_REMOTE: Spotify service connected
2022-05-10 09:29:11.523 11223-11223/com.ruwido.reach D/SPOTIFY_APP_REMOTE: Message from Spotify: [3,{"message":"Could not authenticate within 60 s. It is possible that there's an issue with Spotify auth services or the connection is unstable"},"com.spotify.error.client_authentication_failed"]
2022-05-10 09:29:11.548 11223-11223/com.ruwido.reach D/SPOTIFY_APP_REMOTE: Connection failed.
    com.spotify.protocol.client.error.RemoteClientException: {"message":"Could not authenticate within 60 s. It is possible that there\u0027s an issue with Spotify auth services or the connection is unstable"}
        at com.spotify.protocol.client.RemoteWampClient.getRemoteClientException(RemoteWampClient.java:139)
        at com.spotify.protocol.client.RemoteWampClient.access$200(RemoteWampClient.java:16)
        at com.spotify.protocol.client.RemoteWampClient$1.onAbort(RemoteWampClient.java:44)
        at com.spotify.protocol.client.WampRouterImpl.routeAbort(WampRouterImpl.java:100)
        at com.spotify.protocol.client.WampRouterImpl.route(WampRouterImpl.java:26)
        at com.spotify.protocol.client.AppProtocolCommunicator.onData(AppProtocolCommunicator.java:78)
        at com.spotify.android.appremote.internal.RemoteServiceIo.handleMessage(RemoteServiceIo.java:111)
        at com.spotify.android.appremote.internal.RemoteServiceIo.access$000(RemoteServiceIo.java:45)
        at com.spotify.android.appremote.internal.RemoteServiceIo$IncomingHandler.handleMessage(RemoteServiceIo.java:89)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:210)
        at android.app.ActivityThread.main(ActivityThread.java:7124)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:898)

 

 

 

 

Reply
0 Replies

Suggested posts