Short URL not opened in App with Universal Links

2019-08-26 01:08发布

问题:

I have set up Universal links in my iOS app, and it works with full URL like : example.com/path/

Recently, I want short URL like: t.cn/m , which map to example.com/path/ , can be opened in my App directly. So I added appplinks:t.cn at association domain in Capabilities.

But it doesn't work. It can't be opened directly in my App.It's opened with safari and i have to click the "open" button on pull-down-banner in safari to open in my App.

It seems like short URL can't be opened directly in my App, can it?

回答1:

try applink instead of appplinks

from documentation