Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Please see below the most popular frequently asked questions.
Loading article...
Loading faqs...
Please see below the current ongoing issues which are under investigation.
Loading issue...
Loading ongoing issues...
When the native App written in kotlin starts I call this method always :-
private fun sendAuthRequest() {
val request = AuthorizationRequest.Builder(
SpotifyConstants.SPOTIFY_CLIENT_ID,
AuthorizationResponse.Type.TOKEN,
SpotifyConstants.SPOTIFY_REDIRECT_URI
)
.setShowDialog(true)
.setScopes(arrayOf(SpotifyConstants.SPOTIFY_SCOPES))
.build()
// Starting the authorization window or intent
AuthorizationClient.openLoginActivity(
this,
SpotifyConstants.SPOTIFY_AUTH_REQUEST_CODE,
request
)
}
This grants me the accessToken for the user.
Need Help with :-
1. If this is the best practice to follow this flow or shall I use a layer of backend since the client id is stored in the app.
2. The loading screen of Spotify intent shows everytime I open the app which I want to avoid. I will attach a screenshot of the screen which I am trying to avoid.