ios-sdk icon indicating copy to clipboard operation
ios-sdk copied to clipboard

SPTSessionManagerDelegate not getting called

Open Czajnikowski opened this issue 4 years ago • 3 comments

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?

Czajnikowski avatar Apr 24 '21 19:04 Czajnikowski

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 šŸ¤·šŸ¼ā€ā™€ļø

raqssr avatar Apr 24 '21 23:04 raqssr

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

addy239 avatar Apr 25 '21 12:04 addy239

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.

sgoodwin avatar Aug 10 '22 08:08 sgoodwin