- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link to original issue post on Github: https://github.com/spotify/ios-sdk/issues/183
Hi everyone, I have spent many hours now and have still not been able to resolve this issue I had several months ago with the iOS SDK. Another user on Github had the same issue, so I'm hoping someone on these boards will have an idea.
I'm using the Authorization code flow, but when I call initiateSession and am redirected to the Spotify app, I see the "authorizing ..." pop-up but then when it finishes I get an "X" rather than the usual checkmark and am redirected back to my app. No sessionManager delegate function (didFailWith, for example) is called and my app just hangs.
Of note:
- if I uninstall Spotify and use the web view authorization to authorize, rather than SFAuthenticationSession, I authorize just fine.
- I cannot force this by setting sessionManager.alwaysShowAuthorizationDialog = true, it still just flips to Spotify and starts "authorizing ..." (and then fails) regardless
- running the code in the XCode simulator works.
- as of today where latest iOS is 13.2, my issue is occurring on devices running both iOS 13.1.3 and 12.1.3
- I recently lowered the deployment target for my app to iOS 12.0, around then is when I started seeing issues
The only workaround that I have found so far is to remove Spotify from LSApplicationsQueriesScheme in my info.plist. This forces my app to use the web view authorization flow. Obviously this is slower and much worse UX than an automatic authorization using SFAuthentificationSession.
Does anyone know why this might be happening? I also don't know how to get logs from the call to sessionManager.initiateSession so any help with that would also be greatly appreciated
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