我可以将 Apple Universal Links 与 HTTP 服务器一起使用吗?

Can I use Apple Universal Links with HTTP server?

我无法在任何地方确认这一点,所以也许这里有人可以。 我知道当目标 iOS 9+ 并使用 HTTPS 时,可以使用纯文本应用程序站点关联文件实现通用链接。

我也知道,当支持Handof/Shared Web Credentials时,文件需要签名。

我感兴趣的是通用链接是否可以与通过 HTTP 提供的签名文件一起使用?

对于那些想知道的人 - 不,你不能。即使使用签名文件(这是 iOS 8 中 Handoff 和 Shared Web Credentials 的要求),连接仍然需要通过 HTTPS 访问。

来自 docs 的引用:

The file must meet the following requirements:

  1. The file must be hosted on an https:// site with a valid certificate (for example, Safari must not issue a certificate warning when viewing the site).

  2. The file must not use any redirects.

  3. The file must have the MIME type application/pkcs7-mime.

  4. The file must be CMS signed by a valid TLS certificate.