iOS 14 上的通用链接问题

Universal Links issue on iOS 14

我有一个支持 UniversalLink 的应用程序。单击网站中支持的链接的用户将被导航到应用程序中的功能。 但它不适用于 iOS 14 beta 4。它没有打开应用程序,而是转移到网页 instread。

当我有 selected 开发或 hdhok 配置文件时,UniversalLink 工作正常。但是当我将它上传到 TestFlight 时它不起作用。

经过研究,从这里的文档可以看出https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_associated-domains

为了 iOS 14 支持,我向我的关联域授权中添加了一个查询字符串,如下所示(对于开发模式):

   <service>:<fully qualified domain>?mode= developer

我使用了无法从 public 互联网访问的私人 Web 服务器。但是,如果我 select 分发证书,那么我必须设置哪种替代模式来绕过 CDN 并直接连接到我的私有域?

创建了我的 apple-app-site-association 文件。这是我的文件:

{
"applinks": {
    "details": [
    {
    "appIDs": [ "ABCDE12345.com.example.app" ],
    "components": [
    
    {
    "/": "/coupleinvite/*",
    "comment": "Matches any URL whose path starts with /coupleinvite/"
    },
    {
    "/": "/menu/groupvideocall/*",
    "comment": "Matches any URL whose path starts with /menu/groupvideocall/"
    }
    ]
    }
    ]
}
}

将域添加到权利

<key>com.apple.developer.associated-domains</key>
<array>
    <string>applinks:example .com</string>
</array>

查看有关此主题的 WWDC video(接近尾声)。 Testflight 不适用于开发者模式开关。只能按照您的描述工作。

There are two alternate modes in macOS Big Sur and iOS 14, and they're distinguished by when you would use them.

The first alternate mode is called "developer mode," and it's designed for use when you're building and testing your app before you deploy it to TestFlight or end users.

The second alternate mode is called "managed mode" and is for use when your app is installed using an MDM profile. We'll be focusing today on developer mode.

Apps signed for distribution on the App Store or TestFlight or Mac apps that have been signed and notarized cannot be used with this alternate mode.

上面的重点是“在将其部署到 Testflight 之前”。