Universal Links | Swift 4, Xcode 10

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • Today we go over how to add Universal Links to your iOS app as well as your website. Universal links requires a lot of moving parts but is actually a very simple process.
    By the end of this tutorial, you will know how to setup your website to know about your iOS app and setup your iOS app to deep link to specific screens based on the universal link on your website.
    ** Show Notes and Links **
    Need Help?
    kiloloco.com/membership
    Project Files:
    kilo-loco.teachable.com/cours...
    Kyle Lee on Social Media:
    www.kiloloco.com
    TH-cam- / kiloloco
    Twitter- / kilo_loco
    Instagram- / kilo_loco
    --------GEAR ------
    Code Passionately T-Shirt
    a.co/d/53OkIu0
    Laptop - 2017 MacBook Pro
    amzn.to/2tk5yLr
    Microphone - PowerDeWise Lavalier Microphone
    amzn.to/2In9PCh
    DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, we’ll receive a small commission. This helps support the channel and allows us to continue to make videos like this. Thank you for the support!

ความคิดเห็น • 99

  • @raimitis
    @raimitis 5 ปีที่แล้ว +27

    Never apologize for long videos. 😉 For me the most important is to learn as much as possible from your tutorials.
    Again great tutorial! 👍

    • @raimitis
      @raimitis 5 ปีที่แล้ว

      Yes, please make separate course for this topic!

    • @Kilo_Loco
      @Kilo_Loco  5 ปีที่แล้ว +1

      Thanks for the support!. Yea I have been trying to keep the videos as short as possible but at the same time I don't like sacrificing the explanation of what or why I do something.

    • @Kilo_Loco
      @Kilo_Loco  5 ปีที่แล้ว

      @@raimitis You got it dude 👍🏽

  • @make_reading_great_again
    @make_reading_great_again ปีที่แล้ว

    Thank you. Easy to understand with your demos.

  • @cinquain0
    @cinquain0 2 ปีที่แล้ว +1

    Kyle Lee is just too funny. I love this guy

  • @SprintDock
    @SprintDock 4 ปีที่แล้ว +1

    This was so much more useful than the 2019 WWDC official video on Universal Links. Thanks!

    • @Kilo_Loco
      @Kilo_Loco  4 ปีที่แล้ว

      Haha glad i could help 😁

  • @khawajasalman3380
    @khawajasalman3380 2 ปีที่แล้ว +1

    Wao, the guy has made the whole subject super easy. Thanks :)

  • @yousifkashef2179
    @yousifkashef2179 2 ปีที่แล้ว

    Amazing! Thanks Kilo

  • @abdalsalamaljamal8479
    @abdalsalamaljamal8479 ปีที่แล้ว

    thanks alot man

  • @nickkuhne2317
    @nickkuhne2317 2 ปีที่แล้ว

    This was an awesome video!

  • @merligman
    @merligman 5 ปีที่แล้ว

    So helpful, thanks Kilo !

    • @Kilo_Loco
      @Kilo_Loco  5 ปีที่แล้ว

      Always a pleasure. Be sure to share the channel 😉

  • @aigerimilipova6
    @aigerimilipova6 3 ปีที่แล้ว

    You’re my Hero !!!! Thank you 🙏

  • @leovvvvv
    @leovvvvv 3 ปีที่แล้ว

    Very good explanation :)

  • @felimamura
    @felimamura 4 ปีที่แล้ว

    nice, amazing tutorial! thanks!

    • @Kilo_Loco
      @Kilo_Loco  4 ปีที่แล้ว

      Happy that I could help in any way

  • @migurena
    @migurena 4 ปีที่แล้ว +2

    You're awesome!

  • @calebmitcler8760
    @calebmitcler8760 9 หลายเดือนก่อน

    thank you so much

  • @rasheshbosamiya1482
    @rasheshbosamiya1482 5 ปีที่แล้ว

    Nice lesson! Keep it up!

    • @Kilo_Loco
      @Kilo_Loco  5 ปีที่แล้ว

      Thanks I’m trying to improve the content quality.

  • @carrotwellness
    @carrotwellness 2 ปีที่แล้ว

    Hi kilo great tutorial! I was hoping to see if you can update this tutorial for universal links using SwiftUI. Great stuff keep being positive!

  • @salgadogamer9018
    @salgadogamer9018 4 ปีที่แล้ว

    Awesome, thanks !!!!!!!!

  • @andriisukhariev
    @andriisukhariev 3 ปีที่แล้ว

    Hey man! Thank you for the clear instruction about AASA it was really useful.. But is there any instruction from you on how to add my app as an option for sharing section into apps like TH-cam, Spotify, Mixcloud etc...? Appreciate your help. I am already super confused with all those "deep" , "universal" links which are not doing this at all.

  • @Charlie-fx5vs
    @Charlie-fx5vs 2 ปีที่แล้ว

    Great video. Very informative. If I wanted to create only one simple universal link in my ios app, for example, to direct new users to a login page from an email link when they sign up, how would I do this?

  • @tazihosniomar
    @tazihosniomar 3 ปีที่แล้ว

    Thank you man you're the best !!!!!!

    • @Kilo_Loco
      @Kilo_Loco  3 ปีที่แล้ว

      Glad it helped

  • @fullstack6088
    @fullstack6088 2 ปีที่แล้ว

    Nice tutorial!
    My quick question is should we always see "Open" button in the website in order to open my app or is there any way to let the app opens automatically?

  • @paulosoares8626
    @paulosoares8626 4 ปีที่แล้ว

    Thanks, is there someway to send image through to this approach?

  • @hocinehope8880
    @hocinehope8880 4 ปีที่แล้ว

    Thank you :)

  • @gokmenakar409
    @gokmenakar409 5 ปีที่แล้ว

    Thank you for the awesome code for free.. God bless bro

    • @shouaibahmed6138
      @shouaibahmed6138 3 ปีที่แล้ว

      Please share the code Shouaibahmed.ios@gmail.com

  • @tsivagoud7306
    @tsivagoud7306 5 ปีที่แล้ว +1

    Can we open one application from another app using Universal links?

  • @amral-khayat9304
    @amral-khayat9304 3 ปีที่แล้ว

    Hello the is amazing video ,and i have implemented everything like you have said , and everything work perfect, but application:continueuseractivity:restorationhandler: not called, when i press link just open the app without called the function

  • @hudajawed4332
    @hudajawed4332 4 หลายเดือนก่อน

    Thank you for your explanation. Could you also create videos that explain vulnerabilities associated with Deep Links and Universal Links, as well as strategies to prevent them? This is particularly important as I'm considering implementing either of these technologies in a banking app, and security is paramount. Thank you!

  • @Jake-jk5ng
    @Jake-jk5ng 5 ปีที่แล้ว

    thank you!

    • @Kilo_Loco
      @Kilo_Loco  5 ปีที่แล้ว

      My pleasure. If there’s anyway to make my content better or if there’s a topic you want covered, please let me know.

  • @MinhLe-wz6nz
    @MinhLe-wz6nz 2 ปีที่แล้ว +1

    I implemented method in AppDelegate: private func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -> Void) -> Bool { return true} , so when i click on deeplink, that method is not invoked.

  • @MannyCalavera27
    @MannyCalavera27 5 ปีที่แล้ว

    Great! Thank you ;)

    • @Kilo_Loco
      @Kilo_Loco  5 ปีที่แล้ว

      Always a pleasure 😁 If there’s anyway to make my content better or if there’s a topic you want covered, please let me know.

  • @urmattilek
    @urmattilek 4 ปีที่แล้ว

    Nice!
    What about push notifications with firebase?

  • @mukulsharma150
    @mukulsharma150 4 ปีที่แล้ว +1

    A wildcard by prefixing * is not working in my case.
    Please Help me

  • @GuptaAman1270
    @GuptaAman1270 6 หลายเดือนก่อน

    Just watched the video and it was really helpful. Just a question
    In safari it is showing top banner but on Chrome nothing happens with specific path on website. Also when i added “*” in path, then chrome is opening my app.
    Any help would be appreciated.

  • @masterchef9014
    @masterchef9014 4 ปีที่แล้ว

    can someone help me ??
    i want to deep link youtube video .
    i mean when ever i post my video video link in fb and if my fb followers click on that link i want the open in youtube native app not inside of fb app ..plz help me im newbie .thanks

  • @shubhamshah4322
    @shubhamshah4322 5 ปีที่แล้ว

    good video Buddy :)

    • @Kilo_Loco
      @Kilo_Loco  5 ปีที่แล้ว

      Glad you liked it. If there’s anyway to make my content better or if there’s a topic you want covered, please let me know.

  • @comedyCenter123
    @comedyCenter123 3 ปีที่แล้ว

    What will happen when the iOS app is closed not in the background state. and User Tabbed on Universal Link?

  • @pradeepchandrasekaran272
    @pradeepchandrasekaran272 3 ปีที่แล้ว

    How to host the apple-app-association file on heroku? I tried uploading the well-known folder with the file on Heroku, but it gives "Not Found
    The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."

  • @rasmusb639
    @rasmusb639 2 ปีที่แล้ว

    This does not seem to work anymore. At least in Xamarin Forms. Is there additional steps now, that apple uses a CDN to register the links?

  • @kunalpatel7581
    @kunalpatel7581 ปีที่แล้ว

    This is really nice tutorial for universal link. Can you provide webpages also. like you provided iOS Project

  • @PareshPatel-oe5pw
    @PareshPatel-oe5pw 2 ปีที่แล้ว

    What if my app is not installed on device (assume iPhone)? Assume from your video I want that user id when user install app from App Store and open App.

  • @prakashmaharjan6021
    @prakashmaharjan6021 5 ปีที่แล้ว

    nice tutorial.. subscribed..
    need more tutorial on real world example.. like for eg. pushing all shared news weblink from particular domain inside the app.
    Thanks..

    • @Kilo_Loco
      @Kilo_Loco  5 ปีที่แล้ว

      Glad I could help. If there’s anyway to make my content better or if there’s a topic you want covered, please let me know.

  • @jackpitts5561
    @jackpitts5561 5 ปีที่แล้ว +1

    nice job. where's the link to your deep links?

  • @nickcarmont4776
    @nickcarmont4776 4 ปีที่แล้ว

    Hi Kyle!
    Thanks for the awesome video.
    Quick question: Does this still work with Swift UI?
    I am having some problems/confusion between the code in Appdelegate and scenedelegate. Thanks!

    • @barclaysd
      @barclaysd 4 ปีที่แล้ว

      In SwiftUI and other projects generated in Xcode 11 with a SceneDelegate, you can use the func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {} method within the SceneDelegate, that provides the same functionality as the method Kyle uses within the App Delegate but also has access to the window

  • @jinalgorasiya1991
    @jinalgorasiya1991 4 ปีที่แล้ว

    Will this work in iOS 13?

  • @ahsanriaz198
    @ahsanriaz198 3 ปีที่แล้ว

    if application is back ground working fine but kill app that is not navigate in specific screen.

  • @aradhanasingh4580
    @aradhanasingh4580 ปีที่แล้ว

    what is pattern? suppose with one domain, i have one domain, with multiple url

  • @candyman3537
    @candyman3537 12 วันที่ผ่านมา

    What is the url doesn't exist? Does it fallback to App Store?

  • @ahsanriaz198
    @ahsanriaz198 3 ปีที่แล้ว

    Please give me the answer if application kill what delegate work.

  • @lalitwaliyan5149
    @lalitwaliyan5149 4 ปีที่แล้ว +1

    Thanks Buddy for the tutorial, please clarify one missing point where it is redirect if App is not installed in phone.

    • @IcheVonB
      @IcheVonB 4 ปีที่แล้ว

      it will open Safari with your website if your app is not installed

  • @snehilgehlot7537
    @snehilgehlot7537 4 ปีที่แล้ว

    Guide me for server side setting

  • @tchootchoolol
    @tchootchoolol 3 ปีที่แล้ว

    It doesn't work when you hit the link on Messages if the app isn't in the background

  • @ikennaudokporo6061
    @ikennaudokporo6061 4 ปีที่แล้ว

    Not working for me. Sent link via Whatsapp to a friend who had the app installed on his phone and when he clicked on it (link), the link sent him to the web page instead of the app.

  • @justinbrush702
    @justinbrush702 5 ปีที่แล้ว +1

    Will the apple-app-site-association file not work if you add a JSON extension to it? It seems that everyone refers to this file as a JSON file. I'm having trouble serving this from my Node app (for the website) without an extension, but adding .json allows it to work no problem. Any and all thoughts are appreciated!

    • @Kilo_Loco
      @Kilo_Loco  5 ปีที่แล้ว +1

      Yea, I think it has to be without the extension. I was having problems when I had .json and .txt added at the end. What I did for this tutorial was made it an api endpoint. It simply returned a string with the correct formatting

    • @justinbrush702
      @justinbrush702 5 ปีที่แล้ว +1

      @@Kilo_Loco cool, I'll try a string. I imagine all the
      's and \t's will just be for polish. Most sites have the string polished but not all, check out th-cam.com/users/apple-app-site-association

  • @evan.hongzhengyang7135
    @evan.hongzhengyang7135 4 ปีที่แล้ว

    Hi. My app has never enabled universal link. In order to use it for the very first time, do I have to publish your app to app store(or test flight) in order to test the Universal Link? I've trying to test it in simulator but not successful ... ...

    • @IcheVonB
      @IcheVonB 4 ปีที่แล้ว

      I think it only works on real device "You can test universal links on a device." developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html

  • @rahmaagustina7729
    @rahmaagustina7729 5 ปีที่แล้ว

    Hi, this is an amazing tutorial! thanks!
    But, i want to know how you get the smart banner in your website above? Thank in advance

    • @Kilo_Loco
      @Kilo_Loco  5 ปีที่แล้ว

      It’s actually automatic with safari. As long as you have the apple-app-site-associate file on your website, it should automatically show. If you want to have a custom one, that’s a web dev question and I’m not the right guy to ask

    • @rahmaagustina7729
      @rahmaagustina7729 5 ปีที่แล้ว

      uhm, really? im totally sure that i have an apple-app-site-association file on my website, but it's not working yet:(

    • @prakhar.bhardwaj
      @prakhar.bhardwaj 5 ปีที่แล้ว

      @@rahmaagustina7729 Check out your entitlements file and make sure the domains are formatted properly i.e. applinks:www.yourdomain.com

  • @ellynphilip8412
    @ellynphilip8412 5 ปีที่แล้ว +2

    Awesome tutorial!!
    Q. How will universal link work if we don’t have a website?

  • @tikamchandrakar8530
    @tikamchandrakar8530 5 หลายเดือนก่อน

    what happen if app not exist in user's device

  • @hamidfarooq8046
    @hamidfarooq8046 5 ปีที่แล้ว

    Nice informative tutorials
    Can you share a single location to access your all tutorials. Just like github

    • @Kilo_Loco
      @Kilo_Loco  5 ปีที่แล้ว

      They can all be found at kiloloco.com

  • @silver10188
    @silver10188 3 ปีที่แล้ว

    what if the website doesn't have /users page, is it still gonna open the app?

    • @georb3989
      @georb3989 3 ปีที่แล้ว

      well u use the "*" in the apple-app-site-association file if u don't have a specific /users type page...

  • @Totalrandomness2011
    @Totalrandomness2011 4 ปีที่แล้ว

    I would really appreciate it if you did a tutorial on Deferred Deep Linking with QR Codes meaning where a user scans a QR Code using any reader and it opens up a specific part of the application.

    • @Kilo_Loco
      @Kilo_Loco  4 ปีที่แล้ว +1

      I'll add that to the list but cant guarantee that itll be out soon

    • @Totalrandomness2011
      @Totalrandomness2011 4 ปีที่แล้ว

      Kilo Loco no worries, thank you so much I really appreciate it!

    • @harijawahar8003
      @harijawahar8003 4 ปีที่แล้ว

      I want QR code with https, if user scan this , it should ask whether to open website or app..

  • @dhavalnena7386
    @dhavalnena7386 3 ปีที่แล้ว

    BOOM !!

    • @Kilo_Loco
      @Kilo_Loco  3 ปีที่แล้ว +1

      aawwww yeeeaa

  • @cyrilgarcia2485
    @cyrilgarcia2485 4 ปีที่แล้ว

    If you want to work with deep links while the app is termianted, here is your answer: stackoverflow.com/questions/44529289/deep-linking-only-working-if-app-is-running
    Thanks for the video, Kilo! Subbed!

  • @markokrstanovic5799
    @markokrstanovic5799 4 ปีที่แล้ว

    .well-known and not .wel_known (- insted of _). Please fix that in your video @Kilo Loco. Beside that, great video.

  • @iosanshu82
    @iosanshu82 2 ปีที่แล้ว

    Hi Kilo , I need support in Universal links can you able to help me ? how can i contact you ?

  • @ssgyurdvnj
    @ssgyurdvnj 5 ปีที่แล้ว

    Very cool tutorial, thanx!!

    • @Kilo_Loco
      @Kilo_Loco  5 ปีที่แล้ว

      Glad I could help! Be sure to checkout kiloloco.com for some exclusive content 😉