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.
Plan:
Premium
Country:
USA
Device
iPhone 7
Operating System
iOS 13.4.1
I've been working on changing my test app to use token swap. I modeled the client after the example here: (https://github.com/spotify/ios-sdk/tree/master/DemoProjects/SPTLoginSampleAppSwift/SPTLoginSampleApp...). Since my app is newer it uses SceneDelegate instead of AppDelegate. When I get the callback to func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>)
I do the following:
let parameters = appRemote?.authorizationParameters(from: url);
let access_token = parameters?[SPTAppRemoteAccessTokenKey]
but there are no parameters. What could cause this? Is there some way to enable more debugging output?
Had the same issue!
The reason why every Spotify API using program broke, is because their ssl fingerprint has changed. After I changed that to the current one in the code, everything works fine.
Sorry can you explain what ssl fingerprint are you referring to? How did you change that in your code? I'm facing the same issue.
The access token won't be in this URL. That's expected. Read the authorization guide for the Authorization Code Flow for more information. When your application receives the callback URL, you should call `SPTSessionManager.application(_:open:options)`, as demonstrated in the example you linked to here. If you're using the newer scene delegate (or SwiftUI), then you can pass in `UIApplication.shared` for the `app` parameter, and omit the `options` parameter.
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…