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!
Never apologize for long videos. 😉 For me the most important is to learn as much as possible from your tutorials.
Again great tutorial! 👍
Yes, please make separate course for this topic!
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.
@@raimitis You got it dude 👍🏽
Kyle Lee is just too funny. I love this guy
Thank you. Easy to understand with your demos.
This was so much more useful than the 2019 WWDC official video on Universal Links. Thanks!
Haha glad i could help 😁
Wao, the guy has made the whole subject super easy. Thanks :)
This was an awesome video!
Amazing! Thanks Kilo
thanks alot man
So helpful, thanks Kilo !
Always a pleasure. Be sure to share the channel 😉
Very good explanation :)
You’re my Hero !!!! Thank you 🙏
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!
Nice lesson! Keep it up!
Thanks I’m trying to improve the content quality.
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?
You're awesome!
nice, amazing tutorial! thanks!
Happy that I could help in any way
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.
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.
Thanks, is there someway to send image through to this approach?
Awesome, thanks !!!!!!!!
thank you so much
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?
Thank you for the awesome code for free.. God bless bro
Please share the code Shouaibahmed.ios@gmail.com
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!
Thank you :)
Thank you man you're the best !!!!!!
Glad it helped
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..
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.
Nice!
What about push notifications with firebase?
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
good video Buddy :)
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.
This is really nice tutorial for universal link. Can you provide webpages also. like you provided iOS Project
Can we open one application from another app using Universal links?
Great! Thank you ;)
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.
thank you!
My pleasure. If there’s anyway to make my content better or if there’s a topic you want covered, please let me know.
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!
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
nice job. where's the link to your deep links?
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.
Thanks Buddy for the tutorial, please clarify one missing point where it is redirect if App is not installed in phone.
it will open Safari with your website if your app is not installed
Nice informative tutorials
Can you share a single location to access your all tutorials. Just like github
They can all be found at kiloloco.com
A wildcard by prefixing * is not working in my case.
Please Help me
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
What will happen when the iOS app is closed not in the background state. and User Tabbed on Universal Link?
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.
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?
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
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
uhm, really? im totally sure that i have an apple-app-site-association file on my website, but it's not working yet:(
@@rahmaagustina7729 Check out your entitlements file and make sure the domains are formatted properly i.e. applinks:www.yourdomain.com
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."
Will this work in iOS 13?
Guide me for server side setting
What is the url doesn't exist? Does it fallback to App Store?
what is pattern? suppose with one domain, i have one domain, with multiple url
Please give me the answer if application kill what delegate work.
if application is back ground working fine but kill app that is not navigate in specific screen.
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.
I'll add that to the list but cant guarantee that itll be out soon
Kilo Loco no worries, thank you so much I really appreciate it!
I want QR code with https, if user scan this , it should ask whether to open website or app..
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!
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
@@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
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 ... ...
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
Awesome tutorial!!
Q. How will universal link work if we don’t have a website?
It doesn't work when you hit the link on Messages if the app isn't in the background
what happen if app not exist in user's device
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.
what if the website doesn't have /users page, is it still gonna open the app?
well u use the "*" in the apple-app-site-association file if u don't have a specific /users type page...
BOOM !!
aawwww yeeeaa
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!
nice!
.well-known and not .wel_known (- insted of _). Please fix that in your video @Kilo Loco. Beside that, great video.
Hi Kilo , I need support in Universal links can you able to help me ? how can i contact you ?
Very cool tutorial, thanx!!
Glad I could help! Be sure to checkout kiloloco.com for some exclusive content 😉