Flutter iOS 自动填充强密码错误
Flutter iOS autofill strong password error
我收到这个错误:
[AutoFill] Cannot show Automatic Strong Passwords for app bundleID: com.my.app due to error: Cannot save passwords for this app. Make sure you have set up Associated Domains for your app and AutoFill Passwords is enabled in Settings
我启用了关联域和自动填充凭据提供程序
应用商店连接上也启用了关联域。
在我的物理设备上启用了自动填充
这是我的代码
AutofillGroup(
child: Column(
children: <Widget>[
CupertinoTextField(
controller: email,
enableSuggestions: true,
keyboardType: TextInputType.emailAddress,
autofillHints: [AutofillHints.email],
),
CupertinoTextField(
controller: newPassword,
enableSuggestions: true,
autofillHints: [AutofillHints.newPassword],
)
],
),
)
我希望这样的事情发生:
好的,这花了我一段时间才解决。我用 firebase 来做这个。
- 使用 Firebase 托管
- 在您的计算机上执行
firebase init
并设置主机
- 在 public 文件夹中创建一个名为
.well-known
的文件夹
- 在名为 apple-app-site-association 的文件夹中添加一个文件
将此设置为您的文件
apple-app-site-association:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "teamID.com.your.app",
"paths": ["*"]
}
]
},
"webcredentials": {
"apps": ["teamID.com.your.app"]
}
}
在你的 firebase.json 文件中添加这个
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [
{
"source": "/.well-known/apple-app-site-association",
"headers": [{"key": "Content-Type", "value": "application/json"}]
}
],
"appAssociation": "NONE"
}
运行 firebase deploy --only hosting
您可以在 https://branch.io/resources/aasa-validator/
检查您的 AASA 是否正确
如果可以,请转到 Xcode,在签名和功能中添加关联域:
applinks:yourfirebasewebsite.com
webcredentials:yourfirebasewebsite.com
Make sure you delete your app off your phone
移动到你的flutter项目目录运行:
flutter clean; flutter run --release
我收到这个错误:
[AutoFill] Cannot show Automatic Strong Passwords for app bundleID: com.my.app due to error: Cannot save passwords for this app. Make sure you have set up Associated Domains for your app and AutoFill Passwords is enabled in Settings
我启用了关联域和自动填充凭据提供程序
应用商店连接上也启用了关联域。
在我的物理设备上启用了自动填充
这是我的代码
AutofillGroup(
child: Column(
children: <Widget>[
CupertinoTextField(
controller: email,
enableSuggestions: true,
keyboardType: TextInputType.emailAddress,
autofillHints: [AutofillHints.email],
),
CupertinoTextField(
controller: newPassword,
enableSuggestions: true,
autofillHints: [AutofillHints.newPassword],
)
],
),
)
我希望这样的事情发生:
好的,这花了我一段时间才解决。我用 firebase 来做这个。
- 使用 Firebase 托管
- 在您的计算机上执行
firebase init
并设置主机 - 在 public 文件夹中创建一个名为
.well-known
的文件夹
- 在名为 apple-app-site-association 的文件夹中添加一个文件 将此设置为您的文件
apple-app-site-association:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "teamID.com.your.app",
"paths": ["*"]
}
]
},
"webcredentials": {
"apps": ["teamID.com.your.app"]
}
}
在你的 firebase.json 文件中添加这个
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [
{
"source": "/.well-known/apple-app-site-association",
"headers": [{"key": "Content-Type", "value": "application/json"}]
}
],
"appAssociation": "NONE"
}
运行 firebase deploy --only hosting
您可以在 https://branch.io/resources/aasa-validator/
检查您的 AASA 是否正确如果可以,请转到 Xcode,在签名和功能中添加关联域:
applinks:yourfirebasewebsite.com
webcredentials:yourfirebasewebsite.com
Make sure you delete your app off your phone
移动到你的flutter项目目录运行:
flutter clean; flutter run --release