Universal Links | Swift 4, Xcode 10

Поделиться
HTML-код
  • Опубликовано: 7 авг 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
    RUclips- / 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 👍🏽

  • @cinquain0
    @cinquain0 2 года назад +1

    Kyle Lee is just too funny. I love this guy

  • @make_reading_great_again
    @make_reading_great_again Год назад

    Thank you. Easy to understand with your demos.

  • @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 :)

  • @nickkuhne2317
    @nickkuhne2317 2 года назад

    This was an awesome video!

  • @yousifkashef2179
    @yousifkashef2179 2 года назад

    Amazing! Thanks Kilo

  • @abdalsalamaljamal8479
    @abdalsalamaljamal8479 Год назад

    thanks alot man

  • @merligman
    @merligman 5 лет назад

    So helpful, thanks Kilo !

    • @Kilo_Loco
      @Kilo_Loco  5 лет назад

      Always a pleasure. Be sure to share the channel 😉

  • @leovvvvv
    @leovvvvv 3 года назад

    Very good explanation :)

  • @aigerimilipova6
    @aigerimilipova6 3 года назад

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

  • @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!

  • @rasheshbosamiya1482
    @rasheshbosamiya1482 5 лет назад

    Nice lesson! Keep it up!

    • @Kilo_Loco
      @Kilo_Loco  5 лет назад

      Thanks I’m trying to improve the content quality.

  • @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?

  • @migurena
    @migurena 4 года назад +2

    You're awesome!

  • @felimamura
    @felimamura 4 года назад

    nice, amazing tutorial! thanks!

    • @Kilo_Loco
      @Kilo_Loco  4 года назад

      Happy that I could help in any way

  • @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 RUclips, Spotify, Mixcloud etc...? Appreciate your help. I am already super confused with all those "deep" , "universal" links which are not doing this at all.

  • @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.

  • @paulosoares8626
    @paulosoares8626 4 года назад

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

  • @salgadogamer9018
    @salgadogamer9018 4 года назад

    Awesome, thanks !!!!!!!!

  • @calebmitcler8760
    @calebmitcler8760 9 месяцев назад

    thank you so much

  • @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?

  • @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

  • @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!

  • @hocinehope8880
    @hocinehope8880 4 года назад

    Thank you :)

  • @tazihosniomar
    @tazihosniomar 3 года назад

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

  • @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.

  • @urmattilek
    @urmattilek 4 года назад

    Nice!
    What about push notifications with firebase?

  • @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

  • @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.

  • @kunalpatel7581
    @kunalpatel7581 Год назад

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

  • @tsivagoud7306
    @tsivagoud7306 5 лет назад +1

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

  • @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.

  • @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.

  • @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

  • @jackpitts5561
    @jackpitts5561 5 лет назад +1

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

  • @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.

  • @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

  • @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

  • @mukulsharma150
    @mukulsharma150 4 года назад +1

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

  • @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

  • @comedyCenter123
    @comedyCenter123 3 года назад

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

  • @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.

  • @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?

  • @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

  • @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."

  • @jinalgorasiya1991
    @jinalgorasiya1991 4 года назад

    Will this work in iOS 13?

  • @snehilgehlot7537
    @snehilgehlot7537 4 года назад

    Guide me for server side setting

  • @candyman3537
    @candyman3537 14 дней назад

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

  • @aradhanasingh4580
    @aradhanasingh4580 Год назад

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

  • @ahsanriaz198
    @ahsanriaz198 3 года назад

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

  • @ahsanriaz198
    @ahsanriaz198 3 года назад

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

  • @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..

  • @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 ruclips.net/user/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

  • @ellynphilip8412
    @ellynphilip8412 5 лет назад +2

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

  • @tchootchoolol
    @tchootchoolol 3 года назад

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

  • @tikamchandrakar8530
    @tikamchandrakar8530 5 месяцев назад

    what happen if app not exist in user's device

  • @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.

  • @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...

  • @dhavalnena7386
    @dhavalnena7386 3 года назад

    BOOM !!

  • @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 😉