Cannot get newPassword to generate strong password and autofill
Do you have a UITextField that has the usernameTextField.textContentType = .username
on the same page? I only got the strong password suggestion after I added the username field.
iOS 13 only occasionally suggests a strong password after switching from previous textfield
Apparently, the way I want autogenerated password to work is not possible at this moment.
For strong password suggestion to work, username textfield should be on the same screen as password textfield.
This is bizarre, but after researching apps like Twitter I discovered that non of them have strong password suggestion for a single password textfield. It's unknown whether it's a bug or a feature.
I'll have to go with reimplementing this feature manually.
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.
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
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.
Related Topics
Xcode Server: Opening Import File for Module 'Mobilecoreservices': Permission Denied
Firebase Connection State Always Returning False on First Run
What Is The Default Value of The Padding Modifier in Swift
Get The Start Point and End Point of The UIpangesturerecognizer in Swift
How to Make a Function to Accept Any Enum Types That Have a Rawvalue of String
Detect What Is The Location of The Tap/Press Inside UIbutton Inside Sender Action Method
iOS 10 App Crashes When Accessing Camera
How to Get Textfields from Static Cells in UItableviewcontroller? Swift
Swift Codable: Decode Dictionary with Unknown Keys
Why Do I Have to Explicitly Unwrap My String in This Case
Swift - Boundingbox Cause Exc_Bad_Access (Code=1)
Uicolor Code in a Variable in Swift
Dictionary of a Protocol Swift 4
How to Use @Fetchrequest Outside a View
How to Check If Optional Is Not Nil and Property Is True in One Expression
Table View's 'Cellforrow(At:)' Is 'Nil' in Unit Test
Arkit - Raycasting Using a World Ray Instead of a Screen Point