spotify / ios-sdk

Spotify SDK for iOS
https://developer.spotify.com/documentation/ios/
661 stars 188 forks source link

SPTSessionManagerDelegate not getting called #321

Open Czajnikowski opened 3 years ago

Czajnikowski commented 3 years ago

I tried to run your SPTLoginSampleAppSwift demo project. I fixed signing, I changed the embedded .framework to .xcframework, seems that I set all the client Ids and stuff, launched the server, and still when I tap Connect I see this in the Spotify app for a fraction of second: IMG_A4E908F0CC1F-1 Then Iā€™m getting redirected back to the demo and nothing more happens. Also, none of the SPTSessionManagerDelegate/SPTAppRemoteDelegate methods gets called... Server also is not triggered by the SDK (works via browser)... Wondering what am I doing wrong... What can be a possible issue in my setup? Or maybe there is some issue in the SDK?

raqssr commented 3 years ago

Also having a similar issue here for some time now. Some hours ago, I had that cross/error that you have but honestly I can't remember what I did to fix that šŸ˜… Currently, I can successfully open Spotify but then when it goes back to the app, the screen continues as the login one because it never gets really connected. I tried to do some debug and my appRemote.isConnected is never true. I also put a breakpoint in the didInitiate function and this function never is executed. Does anyone knows how to solve this? I have been reading some threads (for some hours) about this that started on 2018 and it seems that it was already fixed but sometimes it gets broken again šŸ¤·šŸ¼ā€ā™€ļø

addy239 commented 3 years ago

Related https://github.com/spotify/ios-sdk/issues/320

sgoodwin commented 2 years ago

Are you handling the URL used to open your app when it switches back? This needs to be fed to the session manager or it won't do anything.