我尝试在我的 IOS 项目中实现 App Link。我已经设置了 URL 方案,并通过输入testApps://
移动 safari 进行了测试。提示打开应用程序对话框。
我还设置了一个 html 文件,通过公共域访问,www.testSite.com/testApps.html
并包含大多数 Apps Link 教程网站推荐的基本元标记。该文件如下图所示:
<html>
<head>
<meta property="al:ios:url" content="testApps://default" />
<meta property="al:ios:app_name" content="testApps" />
</head>
</html>
但是,当我输入 URL 时,Safari 不会提示打开应用程序。
我还设置了 facebook 应用程序设置 FB_test_Apps,将 URL Scheme Suffix 设置为testApps
,打开Single sign on和Deep Linking。
我在 facebook 上分享www.testSite.com/testApps.html以及在 facebook 应用程序FB_test_Apps下注册的应用程序(在帖子下将显示为“Via FB_test_Apps”)。
当我点击这两个帖子时,Facebook 会将其加载到 facebook 的 webview 中。但是它也不会提示打开我的应用程序。
有什么我错过了吗?
更新
我发现这个问题只发生在 IOS9 中。iOS 8 能够正常工作。
问候史蒂文