Configure deep links in swift?

烈酒焚心 提交于 2019-12-04 09:15:16
devtech

Apple no longer supports Deep Links. It is now called Universal Links and works a bit differently.

Source

Now that Apple no longer supports URI schemes for deep linking, developers must implement Universal Links in order to deep link properly on iOS. If you are already using URI schemes, check out our blog on transitioning to Universal Links.

From: HERE

And HERE is another article on Universal Links and what they are.

iSkore

I would recommend using this cocoapods package called DeepLinkKit HERE IS THE SOURCE CODE

pod "DeepLinkKit"

You can simple route and have an error handling:

// Matches the URL.
router[@"timeline"] = ^{ … }

// Does not match the URL.
router[@"/timeline"] = ^{ … }

Here is a good tutorial that shows you in depth how it works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!