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

Connect SpotifyAppRemote when offline

Connect SpotifyAppRemote when offline

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
6 Replies

I also have this problem and it is very annoying, because it was working a few months ago. I can't exactly put my finger on the exact time that it stopped.  The only way that I can get the SpotifyAppRemote.connect call to succeed offline (after being connected online and getting disconnected) is if I put the Spotify app into offline mode.  But, this shouldn't be necessary according to the docs.

WOULD LOVE SOME HELP!!

This post has helped me a lot and changed my all mood. Thank you so much. 

Thanks for your feedback. This is also still an issue from me. I haven't
gotten any news from Spotify. I'd recommend posting a DM to @SpotifyCares
on Twitter and posting to the GitHub issue I created (which should be
linked above on this thread).

Same here, I have an popular alarm clock app and users just can't play alarms in the morning even they have them downloaded offline, it just stays in the connecting state for 60 seconds and then "Could not authenticate within 60 s. It is possible that there's an issue with Spotify auth services or the connection is unstable"

 

I'm also on the latest 0.7.2 remote play library.. Any news on this?

BTW I have double check that all the conditions for offline playback are met in my case:

I can confirm I can authenticate when the Spotify app is turned into offline mode..

Still having the same issue.

Suggested posts