如何获得打开应用程序而不是 safari 的通用链接? [英] How to get a universal link to open the app instead of safari?

查看:36
本文介绍了如何获得打开应用程序而不是 safari 的通用链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了一段时间让 iOS10 的通用链接正常工作,但直到现在还没有工作.

I've been trying for a while now to get universal links of iOS10 to work but it's not working till now.

我配置了一个 apple-app-site-association.已尝试在同一台服务器或另一台服务器上使用根域、使用子文件夹.在所有情况下,我都被重定向到带有下拉菜单的 safari 网页,以打开我的应用程序作为选项我错过了什么?

I have an apple-app-site-association configured. Have tried using the root domain, using a subfolder, on the same server or another. In all cases I am redirected to safari web page with a drop down to open my app as an option What am I missing?

推荐答案

在花了一些时间尝试配置 U​​niversal Links 之后,我到目前为止学到的是:

After spending some time trying to configure Universal Links here is what I have learned so far:

1 - 通用链接请勿用于重定向或当您在 Safari 地址栏中键入链接并按 Enter 键时.

1 - Universal Links DO NOT work with redirects or when you type your link in Safari address bar and hit enter.

2 - 在 Notes 中输入您的地址并点击它,如果您的应用程序直接打开,则意味着您已正确设置所有内容.

2 - Type your address in Notes and click on it, if your app opens directly it means you have everything set-up correctly.

3 - 当用户在您的网站上执行操作时,通用链接会起作用,尝试将按钮添加到您的网站/博客并将其链接到为打开您的应用而实施的通用链接.现在在 Safari 中打开您的网站/博客,然后单击按钮,它将直接打开您的应用.

3 - Universal Links work when user performs an action on your website, to try this add a button to your website/blog and link it to the Universal Link implemented to open your app. Now open your website/blog in Safari, and click the button, it will directly open your app.

4 - 当您在 Safari 中点击打开"时,后续调用不会直接打开应用,原因在第 1 点中提到.

4 - When you click on 'Open' in Safari, subsequent calls won't open the app directly, for reasons mentioned in point 1.

希望这有帮助:)

这篇关于如何获得打开应用程序而不是 safari 的通用链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆