-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authenticate outside of AppDelegate #151
Comments
Hey Wouter, I did the same thing (but it's working), but my AppDelegate.swift looks like this:
I'm not sure if you're problem is related to this, but in your delegate you have:
which I think should be: Try these fixes out and see if it helps. |
Aah thanks for your reply. I was playing around with the setup of the sessionManager and some old code got lost there. I wrote a function to manually build the sessionmanager instead of a lazy var. Anyways it should be Okay, now that I downloaded iOS13 and updated the spotify app it suddenly started working... I didn't change anything, but oh well. |
Glad to hear it :) |
I prefer keeping my AppDelegate as empty and clean as possible so after I tested the setup as described in the docs and it worked I planned on moving all the logic out of there.
So I created a file setup, all the managers and pointed my app url open to this new file. And then something weird started to happen. I get the authorization code in the app open. The app open initializes my SPTSessionManager which has everything set from delegates and so on, but the delegate itself is never called, I just get;
Task <4F59CD54-A5D1-43F3-955B-5CCB9C6D9A7C>.<1> finished with error - code: -999
My setup looks like this (
SessionManager
);My
AppDelegate.swift
;The text was updated successfully, but these errors were encountered: