从此路径打开Runner.entitlements文件:
ios/Runner/Runner.entitlements
并添加您想要的应用链接
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- ... other keys -->
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:[YOUR_HOST]</string>
</array>
<!-- ... other keys -->
</dict>
</plist>
阅读苹果公司的通用链接指南,以获得更多信息。
登录Apple开发者账户。检查您的Bundle Id。编辑您的App ID。从那里添加关联域名授权。更新您的配置文件并在Flutter项目中使用它。