Spotify-iOS icon indicating copy to clipboard operation
Spotify-iOS copied to clipboard

Getting started

Open orange-artworks opened this issue 2 years ago • 1 comments

Hi Thanks for sharing your Spotify-iOS code. I wonder if you would be able to help me getting started? I'm on a steep learning curve as this is my first iOS App development.

The problem After sign-in using an email address based Spotify account the option to agree to allow the app access to my Spotify account is shown but can never be cleared. Pressing the green "agree" button does nothing visibly (it remains even if pressed several times) but it does register the app in my spotify account. Pressing the top left "< Spotify" link to go back from the login to the app works but just presents the app startup screen with "Sign in with Spotify" again. Pressing cancel does nothing.

More Details

  • I have set the clientID, clientSecret, redirectURI and URL scheme to match my Spotify developer settings.
  • The app builds and runs on my iphone. (iOS 15.5)
  • The redirect URI is of the form io.xxxxx.zzz://callback/ I think the redirectURI is now correctly configured because until I set it correctly I received "INVALID_CLIENT Invalid redirect URI" when trying to login.
  • xcode version: 13.4.1
  • I have not created an oauth server - do I need one?

Hopefully there is a simple way forward. Many thanks Julian O

orange-artworks avatar Jun 21 '22 04:06 orange-artworks

For the record.... solved this by leaving redirectURI = "https://www.iosacademy.io" and adding that to the redirectURI in the spotify developer dashboard settings for the app. leaving the redirectURI as https has resolved it.

orange-artworks avatar Jul 28 '22 04:07 orange-artworks