Getting started with the Spotify iOS SDK

Sdílet
Vložit
  • čas přidán 13. 07. 2024
  • In this video we look at how to incorporate the Spotify SDK into your Swift iOS app. We cover how to:
    - Register a Spotify Developer App
    - Create a simply iOS that connects to Spotify
    - Configure the iOS app to work with Spotify
    - Run on a physical device
    0:00 Intro
    0:42 Demo
    1:25 Overview
    2:43 Creating a developer app
    4:10 Create new iOS app
    6:38 ObjC flag
    7:20 Bridge header
    8:25 Info.plist
    14:19 Building the app
    16:44 Authorization
    21:45 Physical device
    🤖 Source code
    github.com/jrasmusson/swift-a...
    🕹 Level up further with these awesome courses
    Professional iOS Development
    www.udemy.com/course/the-swif...
    Data Structures & Algorithms
    www.udemy.com/course/the-swif...
    Level Up in AutoLayout
    www.udemy.com/course/level-up...
    Level Up in Swift
    www.udemy.com/course/level-up...
  • Věda a technologie

Komentáře • 30

  • @rishabhmaini8200
    @rishabhmaini8200 Před rokem +9

    Is it possible you make this tutorial for SwiftUI as well?

  • @natedavis7159
    @natedavis7159 Před rokem +4

    Oh man am I glad I found your channel! Thank you for making this, so helpful. Also, huge props to actually giving the demo upfront, not enough people do that.

  • @zonever436
    @zonever436 Před 2 lety +4

    Thank you sooooooo much! You posted this at the perfect time. Without this I wouldn't have been able to start my final project for my junior cs class

  • @HashemRC
    @HashemRC Před 4 měsíci

    The complete easy step by step walkthrough I've ever seen. thanks for amazing job.

  • @XxFINSIxX
    @XxFINSIxX Před rokem

    What a great resource! thanks for sharing it

  • @rohitnikam121
    @rohitnikam121 Před 9 měsíci

    Thanks a Lott for the tutorial, I'm glad that I found you man.

  • @coinmeluha5358
    @coinmeluha5358 Před 3 měsíci

    Amazing work

  • @rehanchaudhry5263
    @rehanchaudhry5263 Před rokem +1

    This video helped SO much. Thank you a ton! Was wondering why my setup wasn't working (I did not setup my info.plist properly and was missing the part where I have to send the code to Spotify in order to retrieve the access token). Your video not only solved my problems, it also taught me a lot about the process too. Very grateful I came across this video

    • @swiftarcade7632
      @swiftarcade7632  Před rokem +1

      Great to hear Rehan. I had the same problem. Cheers!

  • @elenamikhaylova5086
    @elenamikhaylova5086 Před rokem

    thank you

  • @chickenduckhappy
    @chickenduckhappy Před 10 měsíci

    Oh, your later videos actually look nice 😎 My harsh advice must have work backwards through time 😱

  • @dennycad7859
    @dennycad7859 Před 2 lety

    Cool as usual😎

  • @lincolnpow4355
    @lincolnpow4355 Před rokem +1

    Hi, thank you for this video! I have created the application in SwiftUI format and it runs on my iPhone! I am having an issue however as once Spotify has authenticated my account I am not redirected back to my App. Just wondering if you had any ideas why this might be happening? Thanks

  • @FizzPlaysGames
    @FizzPlaysGames Před 2 lety

    Great video! Super clear and easy to follow! Is there any way you can make a video on how to do table views for top artists and songs?

    • @swiftarcade7632
      @swiftarcade7632  Před 2 lety

      Thank you Domenic. No promises. But I will see what I can do. Cheers.

  • @crossingc-rw2qs
    @crossingc-rw2qs Před 10 měsíci

    I'm a beginner to swift and find this video super helpful in explaining the process using spotify sdk. But I'm wondering if I don't want to connect to the spotify app and want to get response directly from the api using my own account, is that possible?

  • @user-fj9qb7qn5m
    @user-fj9qb7qn5m Před 4 měsíci +2

    I want to access all user playlists using ios-sdk in my app, but I can't find a way. Please tell me how to access all user playlists along with their associated song data

  • @nikevokey247
    @nikevokey247 Před rokem

    dope video. what do you know about Inspector Norse!? Good taste! New Sub.

  • @bluespartan6325
    @bluespartan6325 Před rokem

    Hi I'm getting this error" Building for iOS, but the linked and embedded framework 'SpotifyiOS.framework' was built for iOS + iOS Simulator."

  • @lucklessdragus
    @lucklessdragus Před 25 dny

    Can't we write the whole logic just in my objective C backend logic? I am not using Swift, but Qt framework for the UI, using Objective C native calls in the backend

  • @microcuts01
    @microcuts01 Před 2 lety

    Hi, I'm building an app with a very similar functionality to this one and almost everything works as expected. I'm having an issue though, if I have my Spotify mac app open and listening from there. My play pause button doesn't work properly if this is the case. Do you know if there's any different configuration we should follow when we chose to listen from different devices?

    • @swiftarcade7632
      @swiftarcade7632  Před 2 lety +1

      Hi Micro - the interplay between devices is a real challenge, and even spotify doesn't get this 100% right.You've got computers, speakers, phones, ipads all connecting through wifi and bluetoother, and sometimes it just doesn't update right. I guess what I am trying to say is I am not surprised its a bit flakey for you, and not to expect it to work perfect. If it kind of works, that's about as good as it is going to get. Good luck!

    • @microcuts01
      @microcuts01 Před 2 lety

      @@swiftarcade7632 Thanks for your input! Appreciate it.

  • @martingerup
    @martingerup Před rokem

    Is it this feature Spotify has closed down the 1. of September 2022?
    There is a great blast out on Spotify forums from music teachers and musicians around the globe. I myself have used Spotify/Amazing Slow downer on a daily basis for practising my musical skills. From 1. of September I can’t connect to Spotify anymore. The inventors of this app says it’s due to a closedown of the iOS/Android streaming SDKs from Spotify. Is it this one?

  • @user-un9do8ey2k
    @user-un9do8ey2k Před 10 měsíci

    Its really strange, but i just download your app, changed your private info (cliendID & secret) and for me Auth is "X" with "unknown error has occured". Mb your solution is no longer correct, mb some shit is happens

  • @adriandomaradzki
    @adriandomaradzki Před rokem

    Hello! I guess i found person who can anwser my question. Can i do something about making Spotify working on ios4.2.1 for ipod touch 2g? I mean i can even teach myself to program apps, but i just want to know is its even possible. Best regards, hoping for anwser

  • @TheTrainIsCominggggg
    @TheTrainIsCominggggg Před 2 lety +1

    Hi! I have followed your wonderful tutorial, although I have stumbled across an error while trying to build the code after importing my Spotify iOS framework.
    Build input file cannot be found: '/Users/nj_delg/Library/Developer/Xcode/DerivedData/HelloSpotify1-bvrmrjgnnwhhrlfnmivhvsrmixpy/Build/Products/Debug-iphoneos/HelloSpotify1.app/HelloSpotify1'
    Xcode has mentioned that I do not have a build input file within my project folder. Any help would be appreciated. Thank you!