spotify / android-sdk

Spotify SDK for Android
https://developer.spotify.com/documentation/android/
Apache License 2.0
462 stars 119 forks source link

Android Auth Library VS App Remote #329

Open lorenzodella opened 2 years ago

lorenzodella commented 2 years ago

I don't understand how to get an instance of SpotifyAppRemote if I log in with the Single Sign-on (Android Authentication Library). Can I do that? Or am I supposed to use Built-in authorization if I want to use App Remote?

matgnt commented 1 year ago

I was wondering the same. Still not sure, but maybe this sample here helps:

https://github.com/spotify/android-sdk/blob/master/app-remote-sample/src/main/java/com/spotify/sdk/demo/RemotePlayerActivity.java#L335

The few lines before it, you can see both options and I think if you have already requested the scope app-remote-control before, you can just set .showAuthView(false) if I'm not mistaken.