- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My info
Plan: Premium
Country: Belgium
Device: iPhone 11 Pro Max
Operating System: iOS 13.5 + macOS Catalina
Dear all
I installed and the iOS SDK properly in Xcode and set up the server token swap and refresh properly => demo swift login works nicely.
Now I'm trying to integrate that into my iOS application and it doesn't work at all. I tested everything that was possible and I broke it down to the least changes to the demo to better understand what could cause it to fail. See hereunder:
1) I set up a basic Xcode iOS app
2) I don't use create the views using programmation as in your demo, I use the Storyboard (only difference with the demo code)
3) I set everything exactly the same, it builds and it runs on the iPhone device nicely without any error or any alert message
4) when I click "Connect", it asks permission to use "Spotify" as expected, I answer yes, it switches to Spotify and starts playing the song
5) it switches back to my app and still shows the "Connect" button
When debugging, I set up breakpoints at every sessionManager, application methods and appRemote event functions, none of them is apparently caught.
When I do the same in the demo project, it stops at breakpoints
My conclusions:
- the delegates do not work and seem not to be assigned correctly because no event is caught
What is strange? It's line per line EXACTLY the same code as the demo project, only I use Scenes so I have a SceneDelegate.swift file in my project.
I tried to transfer some of the code like the delegate assignment to the SceneDelegate file to the corresponding events but it doesn't work well and the openURL method is not the same as in the application open url method so I don't know how to translate the openURL call at scene level.
I'm lost, I spent 3 days trying everything and nothing works. BTW, I use regularly the Web API without any problem so I understand pretty well the Spotify auth process.
Can anybody help me? Because the iOS examples, to be honest, they are pretty thin to find solutions. Can't you at least have one example that uses the StoryBoard or SwiftUI, building the views programmatically do not really help people that want to start programming.
Or at least give me tips please, I'm stuck..
thx a lot, Nico
Solved! Go to Solution.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page