使用 Password AutoFill 功能时,存储的密码域名可能会向 App 用户显示为 airbridge.io 或 abr.ge。
在 Airbridge SDK 设置深度链接后,如果使用 Password AutoFill 功能,密码域名将被存储为 Airbridge 深度链接的 App Link 域名,即 airbridge.io 或 abr.ge。
可通过设置 Password AutoFill 使用的 Webcredentials 域名来解决该问题:
1. 请准备用于存储密码的域名(YOUR_DOMAIN
)。
2. 请将以下 JSON 托管至 https://YOUR_DOMAIN/.well-known/apple-app-site-association
,并确保 Content-Type: application/json
。
App ID Prefix 和 Bundle ID 可在 Apple Developer 的 [Identifiers]>[YOUR_APP] 获取。
{
"webcredentials": {
"apps": ["YOUR_APP_ID_PREFIX.YOUR_BUNDLE_ID"]
}
}
3. 请在 Xcode 导航至 [YOUR_PROJECT]>[Signing & Capabilities]。
4. 请点击 “+ Capability” 以添加 Associated Domains。请将 webcredentials:YOUR_DOMAIN
输入至 Associated Domains。
Was this page helpful?