O'Reilly logo

Mastering iOS 10 Programming by Donny Wals

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Handling Universal Links in your app

With all parts in place you can now adapt your app to Universal Links. In the previous chapter, we did a lot of work to handle continuing user activities. The implementation that is shown uses the application(_:continue:restorationHandler:) method to inspect and dissect user activities and it serves as a handoff point for us to call other methods from. This setup now becomes very beneficial because we could use a similar setup to handle Universal Links.

Whenever our application is expected to open a Universal Link, the application(_:open:options:) method is called on the AppDelegate. This method receives the URL it's expected to open. If we're not able to open the URL for whatever reason, this method is expected ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required