Set a PasswordField to secureTextEntry give me a strange behaviour
This happens when the system's user doesn't have iCloud Keychain enabled. As will often be the case on the Simulator :)
I ran into this on the simulator and came here. Tried it on my phone (where iCloud Keychain is enabled), and got this instead:
[AutoFill] Cannot show Automatic Strong Passwords for app bundleID:
your.bundle.id 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
So this is Apple's cool AutoFill feature. There are some steps described here that should enable that.
Cannot show Automatic Strong Passwords for app bundleID when signup
Automatic Strong Passwords suggestion works if user has enabled the iCloud keychain in its iPhone. I resolved this error by doing the following steps
How to enable iCloud keychain
- Go to the Setting
- Tap on UserName (Apple Id)
- Tap on iCloud
- Tap on keychain
- Enable iCLoud Keychain
Show Automatic Strong password iOS in Flutter app
I was able to solve this by meeting the following prerequisites for Autofill Strong Password to work on iOS:
- Set up
Associated Domains
: https://developer.apple.com/documentation/xcode/supporting-associated-domains. It involves serving anapple-app-site-association
file from the root (or .well-known) directory of your webserver, and adding theAssociated Domains
entitlement to your list of app entitlements. - Add the
Autofill Credential Provider
entitlement to your app.
PS. The latest Flutter 2.8.x contains a bug, which is discussed here https://github.com/flutter/flutter/issues/94043, so if you want to get it working you need to either downgrade to v.2.5.x or wait for the bug fix.
EDIT: With Flutter 2.10.1 the abovementioned bug is fixed.
Flutter iOS autofill strong password error
Ok this took me a while to work out. I used firebase to do this.
- Use Firebase Hosting
- On your computer do
firebase init
and set up hosting - In the public folder create a folder called
.well-known
- Add a file in the folder called apple-app-site-association
Set this as your file
apple-app-site-association:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "teamID.com.your.app",
"paths": ["*"]
}
]
},
"webcredentials": {
"apps": ["teamID.com.your.app"]
}
}
in your firebase.json file add this
"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"
}
run firebase deploy --only hosting
You can check your AASA is correct at https://branch.io/resources/aasa-validator/
If it is ok go to Xcode, in signing and capabilities add associated domains:
applinks:yourfirebasewebsite.com
webcredentials:yourfirebasewebsite.com
Make sure you delete your app off your phone
Move to your flutter project directory run:
flutter clean; flutter run --release
Related Topics
Container View Getting Pushed Down as If It Had a Uinavigationbar
App Crashing When Using Firebase Auth, Reason: 'Default App Has Already Been Configured.'
How to Retrieve Messages Logged with Os_Log from iPad/Iphone
Push/Pop View Controller with Navigation Bar from View Controller Without Navigation Bar
"Unable to Validate Your Application Error" While Uploading a New Version of iOS App
Presenting Uialertcontroller from Uitableviewcell
Continue Uploading Process in Background iOS
iOS - Wkwebview Cross Origin Requests Are Only Supported for Http
How to Set Mdm Payload's "Identity" in Ipcu
Difference Between Keychain and Nsuserdefault
Invalid Redeclaration in Auto Code Generate Nsmanagedobject Subclass Swift 3
How to Use Coreaudio's Audioconverter to Encode Aac in Real-Time
Playing Video Inline in Ionic/Phonegap (Webkit-Playsinline Not Working)
How to Programmatically Dismiss Uialertcontroller Without Any Buttons
Static Linking with Swift, Xcode6-Beta