O'Reilly logo

Mastering iOS 11 Programming - Second Edition 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 enable your app to handle Universal Links. In the previous sections of this chapter, we put in a lot of work in order 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 ...

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