Announcements

Help Wizard

Step 1

NEXT STEP

[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

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random