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

[Android] app-remote-sample throws RemoteClientException (Explicit user authorization is required)

[Android] app-remote-sample throws RemoteClientException (Explicit user authorization is required)

Operating System: Android

I execute the app-remote-sample app of https://github.com/spotify/android-sdk/tree/master.

 

I modified the values of CLIENT_ID and REDIRECT_URI in RemotePlayerActivity for values i entered in the developer dashboard.

I also added the package com.spotify.android.appremote.demo with my SHA-1 (letters in uppercase) in the developer console for the app.

 

I have the SpotifyApp installed on my phone (Version 8.8.66.563).

 

When executing the app an exception is reported, in the logcat the folling Exception is reported:com.spotify.protocol.client.error.RemoteClientException: {"message":"Explicit user authorization is required to use Spotify. The user has to complete the auth-flow to allow the app to use Spotify on their behalf"}

 

I don't have a clue what could be the mistake. Or does the remote-lib doesn't work anymore ?

 

If more information are needed, please write. I will provide them.

Reply
2 Replies

context.getPackageName()Got it. I had to call showAuthView(true) and use the package name got by context.getPackageName()

Hi, can you perhaps clarify exactly what you changed? I believe this is the same problem described here: https://stackoverflow.com/q/78649893/1283578

Suggested posts