4

I'm trying to get autofill working. Specifically, either of these experiences. The former being the one I'm more interested in, but two for the sake of having more than one example.

Everything is working except the strong password generation.

I've correctly configured my AASA, I've switched everything to SSL, textContentType is correctly set, I enabled the autofill provider entitlement (after reading more I'm turning it back off though since that's not what I want (same results)). Is there something in info.plist i'm missing? I am using a keychain library to access the keychain? but I don't think that's it.

Specifically I'm trying to get to this screen

Any suggestions of where to dig would also be appreciated. At this point I'm not sure if I'm doing something wrong, or if ios12 is new and doesn't work right yet.

Relevant code? (This is all I have in the 'code', am I missing somethign somewhere else?)

pwTF.textContentType = .newPassword
pwTF.passwordRules = UITextInputPasswordRules(descriptor: "required: upper; required: lower; required: digit; max-consecutive: 2; minlength: 16;")
nickneedsaname
  • 731
  • 1
  • 5
  • 22

3 Answers3

9

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.

fabianfett
  • 709
  • 7
  • 15
  • 1
    Any other requirement? I have a username type with email keyboard, a newpassword type, associated domain with the required apple file, and I still don't get the suggestions.. – pvinis Jun 26 '19 at 11:09
  • If you have a ssl proxy in the middle (Charles?) password autofill doesn't work. – fabianfett Jun 27 '19 at 12:14
  • 1
    Turns out I had to enable "iCloud Keychain" on the phone settings to "On".. – pvinis Jun 28 '19 at 12:49
1

I know it may be solved already for you but here is a solution for generations to come :)

Sometimes it doesn't work cause your device have the keychain turned off.. go to Settings -> AppleID -> iCloud -> KeyChain .. and enable it .

Mohamed Emad Hegab
  • 2,665
  • 6
  • 39
  • 64
0

i guess it's heuristics based and if it can't find a username field it's unhappy?

¯\_(ツ)_/¯

nickneedsaname
  • 731
  • 1
  • 5
  • 22