Learn how to connect your iOS app with your website using Universal Links, so users can tap a link and go directly to the corresponding content in your app!
Hi.
I’ve finished this tutorial and I think that I’ve found two issues here:
When application(_:continue:restorationHandler:) is called, our components.path value comes with a “/” before the rest of it, something like “/example.html”. So the filtering never finds a “computer” match.
This is easy to fix by updating the project JSON file like this: “arduino.html” → “/arduino.html”.
For some reason, the presentDetailViewController method is not working. It gets to the “pushViewController” line but does nothing.
Anyway, this sample app is handling those universal links and I’ve learned a lot with this tutorial. Thanks.
Thanks for the post.
I looked into the pushViewController issue you mentioned. Are you sure it is hitting this code or getting exited in the guard let above it?
I have a paid apple developer account but my app is not in the App Store can I test the universal link in my app locally in a simulator/test device, does it work ?
Hi nishanthgolla, Note : Universal links are, in many ways, a replacement for apps that register their own URL schemes. They work by providing a small file (served over HTTPS) from the root of a web domain that points to a specific app ID, and then registering that specific app ID with Apple as handling links from that domain.
Because of these requirements, you won’t be able to fully try out universal links without having a real web site accessible via HTTPS and a real app on the App Store, but you can still gain experience with universal links by going through the process of setting everything up.